We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff7e9ec commit 5260bf6Copy full SHA for 5260bf6
packages/nuxt/playground/pages/authentication.vue
@@ -32,10 +32,9 @@ const route = useRoute()
32
const router = useRouter()
33
34
// automatically redirect the user if they are logged in but was rejected on the server because of an outdated cookie
35
-onMounted(async () => {
36
- const currentUser = await getCurrentUser()
+watch(user, (user) => {
37
if (
38
- currentUser &&
+ user &&
39
route.query.redirect &&
40
typeof route.query.redirect === 'string'
41
) {
0 commit comments