diff --git a/docs/interfaces/AuthProviderProps.md b/docs/interfaces/AuthProviderProps.md index ae104ec7..a3b215a7 100644 --- a/docs/interfaces/AuthProviderProps.md +++ b/docs/interfaces/AuthProviderProps.md @@ -187,11 +187,11 @@ ___ ### onBeforeSignIn -• `Optional` **onBeforeSignIn**: () => `string` +• `Optional` **onBeforeSignIn**: () => `unknown` #### Type declaration -▸ (): `string` +▸ (): `unknown` On before sign in hook. Can be use to store the current url for use after signing in. @@ -199,7 +199,7 @@ This only gets called if autoSignIn is true ##### Returns -`string` +`unknown` #### Defined in diff --git a/src/AuthContextInterface.ts b/src/AuthContextInterface.ts index 37ccce24..0bebbf27 100644 --- a/src/AuthContextInterface.ts +++ b/src/AuthContextInterface.ts @@ -133,7 +133,7 @@ export interface AuthProviderProps { * On before sign in hook. Can be use to store the current url for use after signing in. * * This only gets called if autoSignIn is true */ - onBeforeSignIn?: () => string; + onBeforeSignIn?: () => unknown; /** * On sign out hook. Can be a async function. * @param userData User