You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On a project I need authentification from user. I use jwt cookies to do so.
I know I can use the api to verify the cookie and send data but that is 2-3 times slower to send the page, wait for the user to load him and then let him send a request to the api.
Fetching the data in the SSR time and directly integrating in the pages in much faster.
Is there any way to check the cookie value during SSR? I havn't found anything
If it does not exist yet, I think it would be a great feature.
This discussion was converted from issue #147 on February 12, 2021 20:05.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
On a project I need authentification from user. I use jwt cookies to do so.
I know I can use the api to verify the cookie and send data but that is 2-3 times slower to send the page, wait for the user to load him and then let him send a request to the api.
Fetching the data in the SSR time and directly integrating in the pages in much faster.
Is there any way to check the cookie value during SSR? I havn't found anything
If it does not exist yet, I think it would be a great feature.
Beta Was this translation helpful? Give feedback.
All reactions