Skip to content

Commit b1d8fe8

Browse files
authored
Update @workos-inc/authkit-js to latest version (#27)
* Bump version of `@workos-inc/authkit-js` * Pass through `refreshBufferInterval`
1 parent af3f913 commit b1d8fe8

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,6 @@
3737
"react": ">=17"
3838
},
3939
"dependencies": {
40-
"@workos-inc/authkit-js": "0.5"
40+
"@workos-inc/authkit-js": "0.6"
4141
}
4242
}

src/provider.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ export function AuthKitProvider(props: AuthKitProviderProps) {
2626
redirectUri,
2727
children,
2828
onRedirectCallback,
29+
refreshBufferInterval,
2930
} = props;
3031
const [client, setClient] = React.useState<Client>(NOOP_CLIENT);
3132
const [state, setState] = React.useState(initialState);
@@ -58,6 +59,7 @@ export function AuthKitProvider(props: AuthKitProviderProps) {
5859
devMode,
5960
onRedirectCallback,
6061
onRefresh,
62+
refreshBufferInterval,
6163
}).then(async (client) => {
6264
const user = client.getUser();
6365
setClient(client);
@@ -74,7 +76,7 @@ export function AuthKitProvider(props: AuthKitProviderProps) {
7476
setState(initialState);
7577

7678
return initialize();
77-
}, [clientId, apiHostname, https, port, redirectUri]);
79+
}, [clientId, apiHostname, https, port, redirectUri, refreshBufferInterval]);
7880

7981
return (
8082
<Context.Provider value={{ ...client, ...state }}>

0 commit comments

Comments
 (0)