Secret use to sign the JWT Token
Optional authOptional authenticateFunction that will be called to authenticate the user via validators. When not provided, this will default to the default for the given authType.
Typically you would only provide this if designing your own authentication.
Optional authenticateFunction that will be called to authenticate the a refresh token. When not provided, this will default to the default for the given authType.
This is also used to fetch the refresh token without authentication when decryptToken is false.
Typically you would only provide this if designing your own authentication.
Optional authorizedThe allowed authorized redirect urls for social login
Optional collectionCollection name configuration for auth data services
Optional cookieIf authType === 'cookie', configures how the cookie is set up
Optional enableIf enable the refresh token feature
Optional oauthOAuth callback token behavior
Optional setThe configuration for two factor auth
Optional codeThe configuration for the code of 2FA
Optional expire(Optional) the expire time of the validation
Optional length?: numberLength of code
The configuration for the email of 2FA
The Email body template
The Email sender template
The Email subject template
Optional token(Optional) The expiration time of the JWT Token
Generated using TypeDoc
Secret use to encrypt the JWT Token