Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Just asking for clarification and suggestion #41

Open
eokwukwe opened this issue Aug 1, 2021 · 0 comments
Open

Just asking for clarification and suggestion #41

eokwukwe opened this issue Aug 1, 2021 · 0 comments

Comments

@eokwukwe
Copy link

eokwukwe commented Aug 1, 2021

Hello @williamcruzme

Solution
Set the permissions/roles when you log in (before redirect), and enable persistent feature:

Vue.use(LaravelPermissions, { persistent: true });

Recommend solution
Work with Nuxt.js, you set the permissions/roles on the server side.

Originally posted by @williamcruzme in #15 (comment)

@williamcruzme How can the Recommend solution be implemented. I am having the same situation as mentioned in the issue. Although setting persistence to true seems to solve the problem, do you think it is the best idea to store user permissions in localStorage. Also, I noticed that the localStorage is not cleared when the user logs out.

@eokwukwe eokwukwe changed the title Hi @N0SYS73M1SS4F3, thank you for your time. Just asking for clarification and suggestion Aug 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant