rsnext/examples/api-routes-apollo-server-and-client-auth/pages
Ivan Kleshnin 74c2600b46
Fix api-routes-apollo-server-and-client-auth Example (#10334)
* Fix api-routes-apollo-server-and-client-auth Example

`client.resetStore()` must be called after SignIn, SignOut actions

Otherwise, even the current basic auth is not working 100% of the time...

For example, as caching occurs here:

```
const { data, loading } = useQuery(ViewerQuery)
```

it sometimes (race conditions!) prevents a user from signing in
the current code base.

Check https://github.com/apollographql/apollo-cache-persist/issues/34#issuecomment-371177206 comment for more info.

* Fix api-routes-apollo-server-and-client-auth Example (linting)
2020-01-30 14:33:42 +01:00
..
api Add Apollo Server and Client Auth Example (#9913) 2020-01-23 14:55:45 -05:00
about.js Add Apollo Server and Client Auth Example (#9913) 2020-01-23 14:55:45 -05:00
index.js Add Apollo Server and Client Auth Example (#9913) 2020-01-23 14:55:45 -05:00
signin.js Fix api-routes-apollo-server-and-client-auth Example (#10334) 2020-01-30 14:33:42 +01:00
signout.js Fix api-routes-apollo-server-and-client-auth Example (#10334) 2020-01-30 14:33:42 +01:00
signup.js Add Apollo Server and Client Auth Example (#9913) 2020-01-23 14:55:45 -05:00