I am using Auth.js v9 method to signup with google but I am unable to pass user metadata in options
auth.authorize({
connection: 'google-oauth2',
redirectUri: process.env.REACT_APP_AUTH0_COACH_REDIRECT_URL,
responseType: process.env.REACT_APP_AUTH0_RESPONSE_TYPE,
metaData:{role:'admin'} // gives error at this line it can't be pass here
})
Sorry for the delayed response - Were you able to get this sorted?
You might want to look into using Actions to add user metadata and/or add a role to a user. Because you are using a social connection, only the post login action is available.