Hi, I am new to Auth0 and wondering how I can add a custom property “location” to the response of “api/auth/me”.
As of now, an example response I get is as follows.
{
"customer_uuid": "nice-id",
"nickname": "nice-nickname",
"name": "nice@cool.net",
"picture": "https://nice-cool.net",
"updated_at": "2024-05-10T13:01:25.658Z",
"email": "nice@cool.net",
"email_verified": true,
"sub": "auth0|93an34287b8402027475v8kc",
"sid": "nswfWEFQEFVQQfweFSDVSLL-"
}
I need help understanding,
- Adding “location” property to the user in Auth0 in the first place.
- If I don’t want to add the value to the user in Auth0 and kept the value in my own database and add an endpoint to access it for Auth0, can Auth0 invoke that endpoint and get that information and send the response?
- How to add the value retrieved (or saved in Auth0) be set as a property for “api/auth/me” response?
Thank you in advance.