0

Currently, my backend gives me access and a refresh token to authorize users. In a previous project, I've just saved tokens into local storage and authorized users client-side.

My current project is locked for public users, I am showing an alert with information that the app is only for registered users only.

Is there any way to authorize users SSR and get rid of tokens from local storage?

1
  • What is your setup? Are you using Nodejs with JWT for the backend? Commented Feb 9, 2022 at 1:37

1 Answer 1

2

Not entirely sure what your setup is, but couldn't you just use cookies instead? They can be accessed server side.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.