I’m almost done with our auth flow migration to auth0! The last thing is to actually get a little more functionality than the standard
loginWithRedirect() call via react-sdk.
Naturally, I found myself over to auth0-lock and in the documentation, it says that it can and should be used in conjunction with universal logins.
However, I have not been able to figure out how to do this. I have the form rendering in the page I want via
new Auth0Lock().show() but when I log in, it just throws me back to my
redirectUrl with a
code query parameter, presumably to start the token exchange process.
If what I understand about Universal login is correct – a central, outside my domain auth server that does all of the token exchange and verifies it for you – then how do I hook this up to my auth0 lock instance?
Thank you, please let me know if I’m misunderstanding something which is entirely and probably likely possible.