Replies: 1 comment
-
anyone, please shed a light for me? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
the following code is presented under server side page protection mechanism (https://next-auth.js.org/tutorials/securing-pages-and-api-routes#server-side):
it seems to me this is still a client-side protection, because when i printed
session
inside Page component, it wasundefined
server-side, and a session object client-side.this approach, on the other hand, returned session object server-side as well as client-side:
please let me know if i'm missing something.
Beta Was this translation helpful? Give feedback.
All reactions