We are using Auth0 as our identity provider and the Custom Authentication provider in Stitch to use the Auth0 token to login.
Stitch has the option to add metadata fields with names as an URL:
I am using an URL property because of Auth0 where a custom token property is always an URL because of namespacing. The fields name and email are standard Auth0 properties, so that is why those are not URL's. I can save this and everything seems ok.
But when using the app, the login method is failing after refreshing the app twice:
After removing the http://localhost:3010/roles field, refreshing does not have any issues.
The value of http://localhost:3000/roles was ["backoffice", "customer"], it seems this value could not be passed correctly. I have changed the value to { backoffice: true, customer: true }
We are using Auth0 as our identity provider and the Custom Authentication provider in Stitch to use the Auth0 token to login.
Stitch has the option to add metadata fields with names as an URL:
I am using an URL property because of Auth0 where a custom token property is always an URL because of namespacing. The fields
name
andemail
are standard Auth0 properties, so that is why those are not URL's. I can save this and everything seems ok.But when using the app, the login method is failing after refreshing the app twice:
After removing the
http://localhost:3010/roles
field, refreshing does not have any issues.Is there anything I can do to fix this?