Replies: 2 comments 3 replies
-
I don't believe so but it's been requested a few times and an issue is open to implement here: #2988 |
Beta Was this translation helpful? Give feedback.
-
It is and it's always worked that way since v1 (unless that functionality has been removed in v4...). In v2 onwards it's not really clear when that is happening visibly (and there is no explicate API for linking/unlinking, which there was in v1; that functionality has been replicated yet), but under the hood it does link accounts. i.e. if you sign in with an OAuth provider, and while still signed in to it sign in with another OAuth provide, it will link them to the same user and then you can sign out and sign back in as the same user account with either OAuth account. The caveat to this is you need a database for this with NextAuth.js. Account linking without a database wouldn't let you persist the link beyond the expiry time of a cookie and so would be useful only in limited use cases (though technically possible, it's not a feature unless that has changed in v4). |
Beta Was this translation helpful? Give feedback.
-
hello,
i'm wondering if it's possible to be logged in with more than one provider at the same time with next auth?
say my home page provides number of login options (auth providers), and user logs in with one of them. after that i want to allow to log in with the other providers from within the application as well.
basically something like "connected apps" feature.
is that possible?
Beta Was this translation helpful? Give feedback.
All reactions