Skip to content

Commit 6074ea0

Browse files
committed
upgrade to authkit-js v0.8.0
1 parent 0529d38 commit 6074ea0

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

package-lock.json

Lines changed: 6 additions & 6 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.7.1"
40+
"@workos-inc/authkit-js": "0.8.0"
4141
}
4242
}

src/provider.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
import * as React from "react";
44
import {
5-
AuthenticationResponse,
65
createClient,
76
getClaims,
87
LoginRequiredError,
8+
OnRefreshResponse,
99
} from "@workos-inc/authkit-js";
1010
import { Context } from "./context";
1111
import { Client, CreateClientOptions } from "./types";
@@ -34,7 +34,7 @@ export function AuthKitProvider(props: AuthKitProviderProps) {
3434
const [state, setState] = React.useState(initialState);
3535

3636
const handleRefresh = React.useCallback(
37-
(response: AuthenticationResponse) => {
37+
(response: OnRefreshResponse) => {
3838
const { user, accessToken, organizationId } = response;
3939
const { role = null, permissions = [] } = getClaims(accessToken);
4040
setState((prev) => {

0 commit comments

Comments
 (0)