Compare commits

..

4 Commits

Author SHA1 Message Date
Pilou
2c3d9b11a6 Merge pull request #446 from nhost/changeset-release/main
chore: update versions
2022-04-22 22:33:18 +02:00
github-actions[bot]
b1678eaad3 chore: update versions 2022-04-22 20:29:10 +00:00
Pilou
f1c16dba6e Merge pull request #444 from nhost/fix/refresh-session-start
fix: fix `refreshSession`
2022-04-22 22:28:23 +02:00
Pierre-Louis Mercereau
aa1fdf6c2c fix: fix refreshSession 2022-04-22 22:18:17 +02:00
11 changed files with 39 additions and 6 deletions

View File

@@ -1,5 +1,11 @@
# @nhost/hasura-auth-js
## 1.0.15
### Patch Changes
- aa1fdf6: Fix `refreshSession`
## 1.0.14
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@nhost/hasura-auth-js",
"version": "1.0.14",
"version": "1.0.15",
"description": "Hasura-auth client",
"license": "MIT",
"keywords": [

View File

@@ -603,7 +603,7 @@ export class HasuraAuthClient {
}> {
try {
const interpreter = await this.waitUntilReady()
if (interpreter.state.matches({ token: 'idle' }))
if (!interpreter.state.matches({ token: 'idle' }))
return { session: null, error: TOKEN_REFRESHER_RUNNING_ERROR }
return new Promise((resolve) => {
const token = refreshToken || interpreter.state.context.refreshToken.value

View File

@@ -1,5 +1,12 @@
# @nhost/nextjs
## 1.0.18
### Patch Changes
- @nhost/nhost-js@1.1.4
- @nhost/react@0.5.7
## 1.0.17
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@nhost/nextjs",
"version": "1.0.17",
"version": "1.0.18",
"description": "Nhost NextJS library",
"license": "MIT",
"keywords": [

View File

@@ -1,5 +1,12 @@
# @nhost/nhost-js
## 1.1.4
### Patch Changes
- Updated dependencies [aa1fdf6]
- @nhost/hasura-auth-js@1.0.15
## 1.1.3
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@nhost/nhost-js",
"version": "1.1.3",
"version": "1.1.4",
"description": "Nhost JavaScript SDK",
"license": "MIT",
"keywords": [

View File

@@ -1,5 +1,12 @@
# @nhost/react-apollo
## 4.0.17
### Patch Changes
- @nhost/react@0.5.7
- @nhost/apollo@0.4.3
## 4.0.16
### Patch Changes

View File

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

View File

@@ -1,5 +1,11 @@
# @nhost/react
## 0.5.7
### Patch Changes
- @nhost/nhost-js@1.1.4
## 0.5.6
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@nhost/react",
"version": "0.5.6",
"version": "0.5.7",
"description": "Nhost React library",
"license": "MIT",
"keywords": [