Set username with information from social login

  • Hello,
    i have fusion auth running and want to integrate some social logins (e.g. google, facebook). The frontend is flutter with some social login plugins, which return access tokens. These tokens are sent to a node backend server which sends them to fusionAuth via the fusionauth/typescript-client.
    A FA User must have an email and an username, but the username is not provided/set from the soical provider. I also can't set the username inside a reconcile lambda.
    Does anyone has an idea how to properly set the username based on the information from the social provider?

  • Hi @john_doe_1,

    Great question! I want to clarify a couple of things:

    • Are you using social login plugins that are separate from FusionAuth?
    • Are you using an OAuth flow using our hosted pages or are you customizing your login flow?

    We do offer identity providers using our OAuth flow that enable third-party login with FusionAuth. You can find more details on that here. That may be a good place to start.

    Please let me know if that helps, and if not, we can brainstorm some more solutions together.

Log in to reply

Looks like your connection to FusionAuth Forum was lost, please wait while we try to reconnect.