Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Authentication should add HttpOnly secure cookies with refresh_token to be used at server-side for user verification at middlewares like in NextJS #872

Open
rahul3v opened this issue Feb 14, 2025 · 0 comments

Comments

@rahul3v
Copy link

rahul3v commented Feb 14, 2025

Needed some way to use InstantDB user authentication vitrifaction at server-side to verify current active-user at client when user reloads the web-page/application

The way it can be done using cookies, set HttpOnly secure cookies from your side when sending token data, so that we can access the token via cookie by default at server and send response accordingly when user-reloads the app.

Best flexible way is to let user have control what cookies/headers to set while doing authentication, which will give more control to use authentications

@rahul3v rahul3v changed the title Authentication should add cookies with refresh_token to be used at server-side for user verification at middlewares like in NextJS Feature Request: Authentication should add HttpOnly secure cookies with refresh_token to be used at server-side for user verification at middlewares like in NextJS Feb 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant