Auth0-lock how to handle redirection without popup in SPA

Dear Community,

I am trying to use the auth0-lock SDK and I understand that without leaving the SPA where the “popup” shows for login/signup, I can use the .on("authenticated") event after the redirection, but I want a full redirect, leaving my SPA, hence specifying the option auth.redirectUrl. Once I am redirected with search params code and state, how do I handle the authentication on the client? Where do I handle code and state to get an access_token? Is this possible at all?

I just hit the nail in the coffin, I passed responseType: "token", and now the authenticated callback works.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.