Hi everyone,
I’m currently using the new Auth0 Forms to build a custom account settings screen.
What I want to achieve is the following flow:
- A user clicks a custom button in the Forms UI (created via Custom Field Component)
- The button triggers a redirect to an external SNS login page (e.g., Google via
/authorize?connection=google-oauth2
) - The user completes SNS login
- After successful authentication, they are redirected back to the original Forms screen
- The SNS account info is then used to link or log in to the current session in the Forms flow
My question is:
Is it technically possible to return to the same Auth0 Forms UI (in progress) after SNS login?
And use the linked SNS account as the login identity or attach it to the current user?
From what I understand so far, it seems that:
- The SNS login flow starts a separate authentication transaction
- Once the user leaves the Flow via redirect, the original Forms session is terminated
- Forms (
api.prompt.render
) can only be called once per login session
If that’s the case, are there any workarounds?
Or is the only solution to handle SNS login separately, then redirect back to our application and manage account linking outside of Forms?
Thanks in advance for your help!