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

how to get session data server side(middleware) #189

Open
mustafa05deniz opened this issue May 12, 2022 · 1 comment
Open

how to get session data server side(middleware) #189

mustafa05deniz opened this issue May 12, 2022 · 1 comment

Comments

@mustafa05deniz
Copy link

Hi, I needed to access session information from the server side for a situation, but I couldn't find how to do it.

middleware({ app, redirect}) { const token = app.$storage.getUniversal('accessToken') if (!token) { return redirect('/')}}

i need to get data from session like this,

app.$storage.getSession('accessToken')

Is there any way to read this data from server side.

@MarioBozhikov
Copy link

Hello i like to know how you did it ?

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

2 participants