You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After some time of playing around with the Github Provider trying to get the username of the Account, I've noticed that when you have a display name set it replaces the username of the account in session.user.name. For example my github username for all my projects is KrychuTM(so the url would be www.github.com/KrychuTM) but I also have a display name which is Jxavier Paul. I was having trouble getting KrychuTM as the session.user.name so I removed Jxavier Paul as the display name and only then I could get KrychuTM. I don't know if its something I'm missing but is there a way I could get KrychuTM whilst still having a display name?
Edit: I'm using the Prisma Adapter and in the debug im seeing it under the OAuthProfile object as login. Is there a way to access it?
PS: On removing my display name I realized that my database didn't update the name and still had it after signing in and out. Can someone tell me why that is? Sorry for asking so many questions 😅.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
After some time of playing around with the Github Provider trying to get the username of the Account, I've noticed that when you have a display name set it replaces the username of the account in session.user.name. For example my github username for all my projects is KrychuTM(so the url would be www.github.com/KrychuTM) but I also have a display name which is Jxavier Paul. I was having trouble getting KrychuTM as the session.user.name so I removed Jxavier Paul as the display name and only then I could get KrychuTM. I don't know if its something I'm missing but is there a way I could get KrychuTM whilst still having a display name?
Edit: I'm using the Prisma Adapter and in the debug im seeing it under the OAuthProfile object as login. Is there a way to access it?
PS: On removing my display name I realized that my database didn't update the name and still had it after signing in and out. Can someone tell me why that is? Sorry for asking so many questions 😅.
Beta Was this translation helpful? Give feedback.
All reactions