39 lines
1.8 KiB
TypeScript
39 lines
1.8 KiB
TypeScript
import type { Auth } from '../models/Auth';
|
|
import type { CreateAuth } from '../models/CreateAuth';
|
|
import type { HandleLogout } from '../models/HandleLogout';
|
|
import type { IllegalJWTError } from '../models/IllegalJWTError';
|
|
import type { InvalidCredentialsError } from '../models/InvalidCredentialsError';
|
|
import type { JwtNotProvidedError } from '../models/JwtNotProvidedError';
|
|
import type { Logout } from '../models/Logout';
|
|
import type { PasswordNeededError } from '../models/PasswordNeededError';
|
|
import type { RefreshAuth } from '../models/RefreshAuth';
|
|
import type { RefreshTokenCountInvalidError } from '../models/RefreshTokenCountInvalidError';
|
|
import type { UsernameOrEmailNeededError } from '../models/UsernameOrEmailNeededError';
|
|
import type { UserNotFoundError } from '../models/UserNotFoundError';
|
|
export declare class AuthService {
|
|
/**
|
|
* Login
|
|
* Create a new access token object
|
|
* @param requestBody CreateAuth
|
|
* @returns any
|
|
* @throws ApiError
|
|
*/
|
|
static authControllerLogin(requestBody?: CreateAuth): Promise<(Auth | InvalidCredentialsError | UserNotFoundError | UsernameOrEmailNeededError | PasswordNeededError)>;
|
|
/**
|
|
* Logout
|
|
* Create a new access token object
|
|
* @param requestBody HandleLogout
|
|
* @returns any
|
|
* @throws ApiError
|
|
*/
|
|
static authControllerLogout(requestBody?: HandleLogout): Promise<(Logout | InvalidCredentialsError | UserNotFoundError | UsernameOrEmailNeededError | PasswordNeededError)>;
|
|
/**
|
|
* Refresh
|
|
* refresh a access token
|
|
* @param requestBody RefreshAuth
|
|
* @returns any
|
|
* @throws ApiError
|
|
*/
|
|
static authControllerRefresh(requestBody?: RefreshAuth): Promise<(Auth | JwtNotProvidedError | IllegalJWTError | UserNotFoundError | RefreshTokenCountInvalidError)>;
|
|
}
|