Not had any dealings with Auth0 but this looks similar to something I am working on using AWS Cognito as an OIDC provider and embedding tenant context in a custom claim inside the id token.
Are you going to be issuing JWTs to users or exchanging a user token for a JWT for the backend to talk to Auth0? Remember to validate rather than just unpack/decode the JWTs (although knowing your background I am sure you will be)
Not had any dealings with Auth0 but this looks similar to something I am working on using AWS Cognito as an OIDC provider and embedding tenant context in a custom claim inside the id token.
Are you going to be issuing JWTs to users or exchanging a user token for a JWT for the backend to talk to Auth0? Remember to validate rather than just unpack/decode the JWTs (although knowing your background I am sure you will be)