Skip to content
Discussion options

You must be logged in to vote

Hey @Thomanidas, thanks, glad this module helps!

I noticed big sites like GitHub do auth state client-side only, with a non-HttpOnly hint cookie (logged_in) so SSR pages can be CDN-cached without making per-user API calls.

It is indeed the way to go if you want to improve loading but there are some tricky things you should keep in mind. This cookie should be used only for non-sensitive UI which can be cached globally (no personal data, user names, etc). The main reason for this is that any user can set this cookie manually and uncover some part of your page which were not meant to be seen.

I want to apply the same idea with your module: move init() to a client-only plugin, and write cu…

Replies: 1 comment 2 replies

Comment options

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

@Thomanidas
Comment options

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