Where is the user being created in strapi? #149
IamJoshing
started this conversation in
General
Replies: 1 comment 1 reply
-
Here. According to Strapi documentation:
So, to comply with the above requirement, we do that here: const response = await fetch(
`${process.env.NEXT_PUBLIC_API_URL}/auth/${account.provider}/callback?access_token=${account?.accessToken}`
); In the above case, account.provider can be google and account.accessToken will contain the accessToken returned by the NextAuth's jwt callback (Link to documentation). |
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
-
I am looking to be pointed towards where the user is being created so I can update it to use the email as the username.
I have been playing with the boilerplate and different emails. I have different emails with the same username. When I try to login with a gmail account that has the same first name already set as an existing account the auth fails.
Beta Was this translation helpful? Give feedback.
All reactions