Skip to content

Commit

Permalink
chrore: change return type of onBeforeSignIn
Browse files Browse the repository at this point in the history
  • Loading branch information
savbace committed Aug 18, 2023
1 parent bc69de0 commit 125404c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions docs/interfaces/AuthProviderProps.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,19 +187,19 @@ ___

### 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.

This only gets called if autoSignIn is true

##### Returns

`string`
`unknown`

#### Defined in

Expand Down
2 changes: 1 addition & 1 deletion src/AuthContextInterface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 125404c

Please sign in to comment.