How to manually add session cookie with NextAuth.js #12156
Unanswered
bhubavenski
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am testing my application with playwright and I want to test it in authenticated state. That mean the user (bot) should be signed in, but I don't want to go every time trough the signing in flow ( sign in button -> fill form -> press enter -> done ) that is a lot of work, given I can just add cookie for authenticated state. How I can do that, what fields should that cookie have? How to encode properly the new token?
Beta Was this translation helpful? Give feedback.
All reactions