Compare commits

..

5 Commits

Author SHA1 Message Date
Hassan Ben Jobrane
262828f9a1 Merge pull request #2318 from nhost/changeset-release/main
chore: update versions
2023-10-12 16:36:06 +01:00
github-actions[bot]
12f9726ad7 chore: update versions 2023-10-12 13:40:33 +00:00
Hassan Ben Jobrane
845937b552 Merge pull request #2317 from nhost/fix/apollo-integration
fix: integrations: apollo: correct accessToken nullability test
2023-10-12 14:37:49 +01:00
Hassan Ben Jobrane
f777a3380a chore: add changeset 2023-10-12 10:26:00 +01:00
Hassan Ben Jobrane
5081372cab fix: integrations: apollo: correct accessToken nullability test 2023-10-12 10:23:09 +01:00
7 changed files with 23 additions and 4 deletions

View File

@@ -1,5 +1,11 @@
# @nhost/dashboard
## 0.20.25
### Patch Changes
- @nhost/react-apollo@5.0.38
## 0.20.24
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@nhost/dashboard",
"version": "0.20.24",
"version": "0.20.25",
"private": true,
"scripts": {
"preinstall": "npx only-allow pnpm",

View File

@@ -1,5 +1,11 @@
# @nhost/apollo
## 5.2.21
### Patch Changes
- f777a3380: fix: apollo-integration: correctly reset accessToken to null after sign-out
## 5.2.20
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@nhost/apollo",
"version": "5.2.20",
"version": "5.2.21",
"description": "Nhost Apollo Client library",
"license": "MIT",
"keywords": [

View File

@@ -189,7 +189,7 @@ export const createApolloClient = ({
if (['SIGNOUT', 'SIGNED_IN', 'TOKEN_CHANGED'].includes(event.type)) {
if (
event.type === 'SIGNOUT' ||
(event.type === 'TOKEN_CHANGED' && state.context.accessToken === null)
(event.type === 'TOKEN_CHANGED' && state.context.accessToken.value === null)
) {
accessToken = null

View File

@@ -1,5 +1,12 @@
# @nhost/react-apollo
## 5.0.38
### Patch Changes
- Updated dependencies [f777a3380]
- @nhost/apollo@5.2.21
## 5.0.37
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@nhost/react-apollo",
"version": "5.0.37",
"version": "5.0.38",
"description": "Nhost React Apollo client",
"license": "MIT",
"keywords": [