Skip to main content

Type Alias: AuthProps

AuthProps = Pick<AuthCoreProps, "signUpTerms" | "logo" | "layout"> & object

Defined in: react-auth-cognito/src/Auth.tsx:271

Type Declaration

onError?

optional onError?: (error) => void

Callback function invoked when an error occurs during authentication operations. Receives the error object that was caught.

Parameters

ParameterType
errorError

Returns

void

socialProviders?

optional socialProviders?: SocialProvider[]

Federated identity providers to offer alongside email/password. Each one must also be configured on the Cognito user pool and app client, and the app's Amplify config must declare Auth.Cognito.loginWith.oauth.