Improve with-apollo-auth example (#8633)
* Remove connectToDevTools in favour of better default * Remove redirect code from client * Simplify function * Remove apollo-boost This package is optimized for client usage only. We actually never used it. We only usered its reexports. More info: https://www.apollographql.com/docs/react/v2.5/recipes/authentication/#header * Remove stopPropagation We actually don’t need it. * Refactor getToken method We want to show how to get the token. This can be from a cookie or some other isomorph store. We are not interested in the cookie abstraction in this example. * Secure cookie not perfect but better than before…. * Add ssr config option This was documented but not implemented
Showing
Please
register
or
sign in
to comment