Skip to content
Discussion options

You must be logged in to vote

Here you have two options:

Do not SSR

Do not SSR anything in the dashboard. But load data in the client side.
Since you use Apollo, you already doing that.
With this method, you do all the logic in the client side.

Use Cookies

If you need to do SSR, create a cookie in the client side with the user-info after the login process. Then use that information in the server side.
If possible, use next-auth so you don't have to build them yourself.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@THPubs
Comment options

@THPubs
Comment options

Answer selected by THPubs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants