Auth0 Home Blog Docs

Authenticate user for standard pages and SPA using Lock



we have 2 roles for users

  • USER

We have a backend 2 applications for them:

We want to have only one Lock for these apps. Say you try to connect to or you are redirected to the Lock widget on

How I think it should work
The successful login will redirect us to from here, based whether it’s ADMIN or USER, we would route to the correct app.

What is the problem, then?
How do we pass credentials to the frontend from the routing endpoint?