I stumbled upon https://next-auth.js.org/ which is great for giving users the possibility to sign up for my website with github and slack for example.
Since I do not want multiple logins with the same email and different providers (security issue -> see here https://next-auth.js.org/faq), my question is. Could there be a way to still use next auth, but only for linking, but not for login? Or can anyone recommend a library that does the authentication but not the login?
Use case:
- User registers with Github and is logged in
- User clicks on connect with Slack (OAuth2 procedure etc.) but this time he is not able to login with that
- I pull data from slack periodically and assign it to the user (comment done in a channel etc.)