Need help understanding the usage of ssr-profile.js in Auth0 sample #15169
Answered
by
j0lvera
thesobercoder
asked this question in
Help
-
I was going through the Auth0 sample and I came across the |
Beta Was this translation helpful? Give feedback.
Answered by
j0lvera
Jul 14, 2020
Replies: 1 comment
-
@thesobercoder that file is an example on how'd you do authorization on a protected page using SSR. For example, when you don't want the page to load at all, you redirect the unauthorized user from the server using |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
thesobercoder
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@thesobercoder that file is an example on how'd you do authorization on a protected page using SSR.
For example, when you don't want the page to load at all, you redirect the unauthorized user from the server using
getServerSideProps
when the session is invalid.