How to setup a splash/waiting screen during auth ? #1855
Unanswered
franck-grenier
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I'm using
@nuxtjs/auth-next: 5.0.0-1667386184.dfbbb54
to authenticate my users through OAuth2 with Laravel Passport.The OAuth2 flow can sometimes be a bit long and users then have blank screens while waiting to finally land authenticated on the app.
So we are trying to display a "loading/waiting" message.
Our login page looks like that:
Without
auth
middleware, I can see my message "Authenticating..." and my spinner. But I never get redirected thoughawait this.$router.push(path)
instruction. So I guess redirecting after auth works another way.Do you know how I can achieve that ? Does Nuxt Auth have some built-in stuff to show that kind of "waiting/loading" screen ?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions