Replies: 1 comment
-
See the profile callback: https://next-auth.js.org/configuration/providers#options The doc page you linked also shows you that the default profile callback doesn't set email and image: https://github.com/nextauthjs/next-auth/blob/main/src/providers/reddit.js |
Beta Was this translation helpful? Give feedback.
0 replies
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Description 🐜
Hello. I am following the recommended Reddit boilerplate:
According to the docs here Reddit is pre-configured to return id, name and email. Additionally, in my Provider config, I am selecting identity the scopes: identity mysubreddits read. However, logging the session.user shows only the name
{"name":"reddituser892"}
Is this a bug in your own project?
No
How to reproduce ☕️
Configure the example repository to use Reddit as a provider, then log the session.user to see what the object contains after successful login.
Screenshots / Logs 📽
No response
Environment 🖥
System:
OS: Windows 10 10.0.19042
CPU: (64) x64 AMD Ryzen Threadripper 3990X 64-Core Processor
Memory: 113.62 GB / 127.87 GB
Binaries:
Node: 14.17.3 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.5 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm: 6.14.13 - C:\Program Files\nodejs\npm.CMD
Browsers:
Edge: Spartan (44.19041.1023.0), Chromium (91.0.864.59)
Contributing 🙌🏽
No, I am afraid I cannot help regarding this
Beta Was this translation helpful? Give feedback.
All reactions