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

Server Side Route Protection #1

Open
alpha-titan opened this issue Aug 16, 2021 · 0 comments
Open

Server Side Route Protection #1

alpha-titan opened this issue Aug 16, 2021 · 0 comments

Comments

@alpha-titan
Copy link

alpha-titan commented Aug 16, 2021

We get a glimpse of the UI with client side route protection, but with validation in server side and checking if the user is authenticated it will only render page which unauthenticated people will see if they are not authenticated, getServerSideProps can block all the operations till the render is complete, therefore this will not have any flashes of authenticated UI,

use case:
prime benifits:
with only client side route protection the pre-rendering will give a glimpse of the prime UI
with server side authentication it is guaranteed to show the un authenticated UI

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