Consider this flow:
- user navigates to /login
- user clicks "sign in with [provider]"
- redirects to provider
-
success - automatically redirects back to /login
- at this stage, the app does not know that the authentication is "pending".
-
after successful auth, the
signInSuccesscallback is called - but it could take seconds before this happens.
How can I present a spinner or "authenticating" state after returning but before the auth has completed? Ideally I would like to redirect the user to /login?from_provider=google.com or another URL after returning from provider but I can’ find any setting that allows this.
Aucun commentaire:
Enregistrer un commentaire