From 125404c822f218d548fa76f241b9e3f795c54485 Mon Sep 17 00:00:00 2001 From: savbace <7579898+savbace@users.noreply.github.com> Date: Fri, 18 Aug 2023 16:05:20 +0300 Subject: [PATCH] chrore: change return type of onBeforeSignIn --- docs/interfaces/AuthProviderProps.md | 6 +++--- src/AuthContextInterface.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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