diff --git a/src/provider.tsx b/src/provider.tsx index 56630cc..486e9d8 100644 --- a/src/provider.tsx +++ b/src/provider.tsx @@ -87,6 +87,8 @@ export function AuthKitProvider(props: AuthKitProviderProps) { signUp: client.signUp.bind(client), signOut: client.signOut.bind(client), switchToOrganization: client.switchToOrganization.bind(client), + getSignInUrl: client.getSignInUrl.bind(client), + getSignUpUrl: client.getSignUpUrl.bind(client), }); setState((prev) => ({ ...prev, isLoading: false, user })); }); @@ -136,4 +138,6 @@ const NOOP_CLIENT: Client = { getAccessToken: () => Promise.reject(new LoginRequiredError()), switchToOrganization: () => Promise.resolve(), signOut: async () => {}, + getSignInUrl: async () => "", + getSignUpUrl: async () => "", }; diff --git a/src/types.ts b/src/types.ts index e78391f..b3a15a8 100644 --- a/src/types.ts +++ b/src/types.ts @@ -8,6 +8,8 @@ export type Client = Pick< | "getAccessToken" | "signOut" | "switchToOrganization" + | "getSignInUrl" + | "getSignUpUrl" >; export type CreateClientOptions = NonNullable<