Two providers one user
Is there a way of having two providers (discord and steam) in next auth link up to the same user?
Solution:Jump to solution
got it just had to add
allowDangerousEmailAccountLinking: true,
to the provider options14 Replies
I'm using
next-auth/providers/discord
for discord and next-auth-steam
for steam provider
and here's my [...nextauth].ts
I mean you could
but generally providers are handled separately
Solution
got it just had to add
allowDangerousEmailAccountLinking: true,
to the provider options nice
ik not the best but it works I guess
yep
whatever works
what steam provider did you use ?
https://www.npmjs.com/package/next-auth-steam but I change some of the code on my end
npm
next-auth-steam
Steam authentication provider for next-auth. Latest version: 0.1.0, last published: a day ago. Start using next-auth-steam in your project by running
npm i next-auth-steam
. There are no other projects in the npm registry using next-auth-steam.I used this to patch the package https://www.npmjs.com/package/@milahu/patch-package
npm
@milahu/patch-package
Fix broken node modules with no fuss. Latest version: 6.4.14, last published: a year ago. Start using @milahu/patch-package in your project by running
npm i @milahu/patch-package
. There are 5 other projects in the npm registry using @milahu/patch-package.@Cox Insider I hope that help you ^^^
yeah, its similar to the one I made already, but still not compatible with auth.js 😦
can I see ur one?
its like the one in the package, just uses fetch instead of the openid library
ohh yeah that works too