Refresh JWT Token in connection init #484
Answered
by
enisdenjo
andreadragotta
asked this question in
Q&A
-
Hi, i'm using graphql-ws with URQL in Vue3, my configuration send via connection-init the JWT token but this is a short live token (5 minutes) after that time i want to refresh it but i don't know how i can do it. Anyone have a solution? Thank you |
Beta Was this translation helpful? Give feedback.
Answered by
enisdenjo
Jun 6, 2023
Replies: 1 comment
-
There is a "ws server and client auth usage with token expiration, validation and refresh" recipe showcasing my recommended approach. Additionally, if curious, you can read my opinion on authentication in WebSockets. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
enisdenjo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There is a "ws server and client auth usage with token expiration, validation and refresh" recipe showcasing my recommended approach.
Additionally, if curious, you can read my opinion on authentication in WebSockets.