Redirection not working after setUser() #1509
Replies: 5 comments
-
same issue here, the login works but not redirect to home page. |
Beta Was this translation helpful? Give feedback.
-
your write custom axios settings ? |
Beta Was this translation helpful? Give feedback.
-
not really. I have used extended local scheme and $auth setUser method, as per documentation. |
Beta Was this translation helpful? Give feedback.
-
@IsidroMar95 I fixed this with a workaround. I used universal storage for it. Find it in documentation https://auth.nuxtjs.org/api/storage/ |
Beta Was this translation helpful? Give feedback.
-
Ive encountered also the similar problem here, after using the .setUser in page1 then access the user on page2, i cant access the set data. so with your solution @panksi i managed to get over on this. thanks. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am using local strategy:

and I am getting user data in login request.

So I used $auth.setUser() method to set the data.
The issue is that I am not getting redirected even though I have all the data in my $auth state.

Beta Was this translation helpful? Give feedback.
All reactions