Type Alias: AuthProviderProps
AuthProviderProps =
object
Defined in: react-auth-cognito/src/AuthProvider.tsx:28
Properties
children
children:
React.ReactNode
Defined in: react-auth-cognito/src/AuthProvider.tsx:29
onError?
optionalonError?: (error) =>void
Defined in: react-auth-cognito/src/AuthProvider.tsx:35
Called when loading the stored session fails. The provider still renders the user as signed out, so without this the failure is invisible — pass your error tracker here. Not called when nobody is signed in.
Parameters
| Parameter | Type |
|---|---|
error | unknown |
Returns
void