Hi, I have been reading docs for days with no luck. I’m extremely confused and any help is massively appreciated.
I created a Vue 3 app with an Auth0 integration that allows users to login in two ways: a normal database login that requires a username and password, and Google OAuth.
The problem is that I can’t figure out how to require the Google OAuth users to create a username immediately upon registering. This is a problem because my app has user generated content and the email cannot be visible to other users - a normal username is required for all new users. I’ve been reading a lot of docs about actions and writing custom claims to the JWT, but it feels like I’m going in the wrong direction.
In my app, I can easily see the logged in user’s information after successfully following the quick start guide for Vue 3 (Auth0 Vue SDK Quickstarts: Calling an API). My approach was to check if the authenticated user had a username in their custom claims, then if they don’t have one, prompt them to create a username. But this is where I got stuck - do I need to call the Auth0 management API to do this? if so, how?
Any help is appreciated.