Passing down additional params during user signup using OAuth provider
Is there a way to pass down additional params to be written using
await signIn("google")
? I'm aware of the afterUserCreatedOrUpdated
method but that callback won't receive the params passed from signIn. Additionally, is there a way of removing phone, phoneVerificationTime, isAnonymous, and image fields? These fields aren't relevant to my application.4 Replies
Thanks for posting in <#1088161997662724167>.
Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets.
- Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.)
- Use search.convex.dev to search Docs, Stack, and Discord all at once.
- Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI.
- Avoid tagging staff unless specifically instructed.
Thank you!
Are you looking for this @terms ? https://labs.convex.dev/auth/config/oauth#retrieving-other-profile-information
OAuth - Convex Auth
Authentication library for your Convex backend
And you can fully own the user table creation / updating / fields by implementing the
createOrUpdateUser
function: https://labs.convex.dev/auth/advanced#controlling-user-creation-and-account-linking-behavior
which avoids needing to add those fieldsAdvanced: Details - Convex Auth
Authentication library for your Convex backend
One thing I've missed when trying to override this function that would be really helpful in the docs potentially...
https://discord.com/channels/1019350475847499849/1341675738751045686