-
Notifications
You must be signed in to change notification settings - Fork 133
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
JWT auth + refresh token issue #68
Comments
@akaNightmare |
@dotansimha websocket is not like http, |
@DxCx I know, and we had a discussion about it few months ago. In the ws transport with have both |
If you're still having problems with this, please reply below... not quite sure if this is the right place for this. |
I use JWT auth for authentication and no problems with apollo client authentication because http://dev.apollodata.com/core/network.html#networkInterfaceMiddleware even when token refreshes, but I have the issue with graphql subscriptions authentication. According to https://github.com/apollographql/graphql-subscriptions/blob/master/.designs/authorization.md and https://github.com/apollographql/tools-docs/blob/master/tools/graphql-subscriptions/authentication.md token sets once only (
connectionParams: {token: 'some string'}
andlazy: true
) on initialisation SubscriptionClient and it works fine, but not when token refreshes.Technologies/libs which I use in my project:
vue
vue-auth
vue-apollo
expressjs
graphql-subscriptions
subscriptions-transport-ws
graphql
The text was updated successfully, but these errors were encountered: