sidebase / nuxt-auth

Authentication built for Nuxt 3! Easily add authentication via OAuth providers, credentials or Email Magic URLs!
https://auth.sidebase.io
MIT License
1.25k stars 162 forks source link

Redirect route after signing in #827

Closed NyllRE closed 2 months ago

NyllRE commented 2 months ago

Environment

Reproduction

no reproduction since this is a question rather than a bug

Describe the bug

There doesn't seem to be clear documentation on how to redirect a user to a specific route (eg: /profile) after a user has signed in. The closest thing to my situation is the callbacks in nuxt-auth-handler but it's still not very clear where I can redirect to a specific link after a certain action like signing out or in

Additional context

No response

Logs

No response

zoey-kaiser commented 2 months ago

Have a look at the docs section here on the signIn function 😊 https://auth.sidebase.io/guide/application-side/session-access#signin