TypeAlias.AuthContext
type AuthContext = BaseAuth & {
login: (connection?: AuthConnection) => Promise<void>;
logout: () => Promise<void>;
};
Represents the authentication context which extends the base authentication. Provides methods for logging in and logging out.
Type declaration
Name | Type |
---|---|
login | (connection ?: AuthConnection ) => Promise <void > |
logout | () => Promise <void > |