The Auth class is mainly used on the client side to access user information and request user authentication-related APIs.
localeThe language used by the current user.
roleThe role used by the current user.
tokenAPI token.
authenticatorThe authenticator used for the current user's authentication. See User Authentication.
signIn()User sign in.
async signIn(values: any, authenticator?: string): Promise<AxiosResponse<any>>| Parameter Name | Type | Description |
|---|---|---|
values | any | Request parameters for the sign-in API |
authenticator | string | The identifier of the authenticator used for sign-in |
signUp()User sign up.
async signUp(values: any, authenticator?: string): Promise<AxiosResponse<any>>| Parameter Name | Type | Description |
|---|---|---|
values | any | Request parameters for the sign-up API |
authenticator | string | The identifier of the authenticator used for sign-up |
signOut()Sign out.
async signOut(values: any, authenticator?: string): Promise<AxiosResponse<any>>| Parameter Name | Type | Description |
|---|---|---|
values | any | Request parameters for the sign-out API |
authenticator | string | The identifier of the authenticator used for sign-out |