Skip to content

Commit 82ad9b8

Browse files
K-Mistelecmatheson
authored andcommitted
feat: expose getSignInUrl and getSignUpUrl from authkit-js to client
1 parent a75bda2 commit 82ad9b8

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/provider.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ export function AuthKitProvider(props: AuthKitProviderProps) {
8787
signUp: client.signUp.bind(client),
8888
signOut: client.signOut.bind(client),
8989
switchToOrganization: client.switchToOrganization.bind(client),
90+
getSignInUrl: client.getSignInUrl.bind(client),
91+
getSignUpUrl: client.getSignUpUrl.bind(client)
9092
});
9193
setState((prev) => ({ ...prev, isLoading: false, user }));
9294
});

src/types.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ export type Client = Pick<
88
| "getAccessToken"
99
| "signOut"
1010
| "switchToOrganization"
11+
| "getSignInUrl"
12+
| "getSignUpUrl"
1113
>;
1214

1315
export type CreateClientOptions = NonNullable<

0 commit comments

Comments
 (0)