Subscriptions-transport-ws: Middleware for connection params

Created on 27 Mar 2017  路  2Comments  路  Source: apollographql/subscriptions-transport-ws

Is there a middleware for connection params, similar to the one used for apollo-client? Typically you don't have the authentication token ready when setting up the subscription client. So if you want to require a specific token as the authorization header that the user can only obtain after logging in, how could we set that up?

waiting-for-release

Most helpful comment

Have you looked at the PR #78? This might be what you are waiting for.

All 2 comments

Have you looked at the PR #78? This might be what you are waiting for.

Was this page helpful?
0 / 5 - 0 ratings