Replies: 4 comments 7 replies
-
I'm still trying to figure this out after 3 days, any help greatly appreciated 🙏 |
Beta Was this translation helpful? Give feedback.
-
You could probably create your custom mongoose models based on the default NextAuth models. Maybe with the mongodb node client would be a little bit easier. Also in the |
Beta Was this translation helpful? Give feedback.
-
I could solve this by during signup, create a separate user object called "UserInfo", and store all custom info there. But that would mean i can't access any of this info through the session, only separate api calls. Which i guess works as a workaround but i rather solve it how its meant to be solved |
Beta Was this translation helpful? Give feedback.
-
The |
Beta Was this translation helpful? Give feedback.
-
I'm using the Discord provider and want to grab the profile.descriminator so i can get the username#1234 value. This is only available in SignIn.
I've tried this
But i'm getting "To confirm your identity, sign in with the same account you used originally."
Url: http://localhost:3000/api/auth/signin?error=**OAuthAccountNotLinked**
How would i properly add custom values upon signin?
I assume i have to write a custom model. But there is no information i can find how to do this with mongoose. Any examples would be greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions