Replies: 1 comment 1 reply
-
Check out the Here is the data being saved if you create the user with OneLogin: next-auth/src/providers/onelogin.js Lines 12 to 15 in e9ac11b return any additional fields if you want to, and those will be added on user creation |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Question 💬
I have the OneLogin setup. And am using MongoDB as database. Here's the relevant portion of code from the [...nextauth].js file:
The problem is, the
users
table contains thename
andimage
field always as null. When I enabled the debug in NextAuth, I can see something similar to this:Kindly note that I have masked some of the values. As you can see that the OAuthProfile has the
name
. How can I access this data and use it?How to reproduce ☕️
Unable to post the whole code.
Contributing 🙌🏽
Yes, I am willing to help answer this question in a PR
Beta Was this translation helpful? Give feedback.
All reactions