Auth
Overview
Auth is an abstract class for user authentication types. It defines the interfaces required to complete user authentication. To extend a new user authentication type, you need to inherit the Auth class and implement its methods. For a basic implementation, refer to: BaseAuth.
Instance Properties
user
Authenticated user information.
Signature
abstract user: Model
Class Methods
constructor()
Constructor, creates an Auth instance.
Signature
constructor(config: AuthConfig)
Type
Details
AuthConfig
check()
User authentication. Returns user information. This is an abstract method that all authentication types must implement.
Signature
abstract check(): Promise<Model>
signIn()
User sign in.
Signature
signIn(): Promise<any>
signUp()
User sign up.
Signature
signUp(): Promise<any>
signOut()
User sign out.
Signature
signOut(): Promise<any>

