FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login

    Can I allow a user to add their existing social login account to their existing FusionAuth account?

    Scheduled Pinned Locked Moved
    Q&A
    social logins user accounts
    0
    2
    665
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • danD
      dan
      last edited by

      I have users that have existing email/password accounts. But I want to let them use their social logins to gain access to our application as well.

      How can I do that?

      --
      FusionAuth - Auth for devs, built by devs.
      https://fusionauth.io

      1 Reply Last reply Reply Quote 0
      • danD
        dan
        last edited by dan

        In 1.28.0, FusionAuth introduced a linking strategy and a first class 'link' object. This is part of the community/free edition.

        This is how I'd approach that. You'd have to get the user to login via their social account and get their unique user Id (for, say, Google). This could be done via a page in your application.

        Then you'd take that Google user Id and create a link using the APIs: https://fusionauth.io/docs/v1/tech/apis/identity-providers/links/

        Here's more on this: https://fusionauth.io/docs/v1/tech/identity-providers/#linking-strategies

        After the link is created, the next time the user went to login, they could use either their old email/password creds or the linked social login.

        --
        FusionAuth - Auth for devs, built by devs.
        https://fusionauth.io

        1 Reply Last reply Reply Quote 0
        • A Alex Patterson referenced this topic on
        • First post
          Last post