This commit is contained in:
22
dist/services/AuthService.d.ts
vendored
22
dist/services/AuthService.d.ts
vendored
@@ -17,28 +17,28 @@ export declare class AuthService {
|
||||
/**
|
||||
* Login
|
||||
* Login with your username/email and password. <br> You will receive:
|
||||
* * access token (use it as a bearer token)
|
||||
* * refresh token (will also be sent as a cookie)
|
||||
* * access token (use it as a bearer token)
|
||||
* * refresh token (will also be sent as a cookie)
|
||||
* @param requestBody CreateAuth
|
||||
* @result any
|
||||
* @returns any
|
||||
* @throws ApiError
|
||||
*/
|
||||
static authControllerLogin(requestBody?: CreateAuth): Promise<(ResponseAuth | InvalidCredentialsError | UserNotFoundError | UsernameOrEmailNeededError | PasswordNeededError | InvalidCredentialsError)>;
|
||||
static authControllerLogin(requestBody?: CreateAuth): Promise<(ResponseAuth | InvalidCredentialsError | UserNotFoundError | UsernameOrEmailNeededError | PasswordNeededError)>;
|
||||
/**
|
||||
* Logout
|
||||
* Logout using your refresh token. <br> This instantly invalidates all your access and refresh tokens.
|
||||
* @param requestBody HandleLogout
|
||||
* @result any
|
||||
* @returns any
|
||||
* @throws ApiError
|
||||
*/
|
||||
static authControllerLogout(requestBody?: HandleLogout): Promise<(Logout | InvalidCredentialsError | UserNotFoundError | UsernameOrEmailNeededError | PasswordNeededError | InvalidCredentialsError)>;
|
||||
static authControllerLogout(requestBody?: HandleLogout): Promise<(Logout | InvalidCredentialsError | UserNotFoundError | UsernameOrEmailNeededError | PasswordNeededError)>;
|
||||
/**
|
||||
* Refresh
|
||||
* Refresh your access and refresh tokens using a valid refresh token. <br> You will receive:
|
||||
* * access token (use it as a bearer token)
|
||||
* * refresh token (will also be sent as a cookie)
|
||||
* * access token (use it as a bearer token)
|
||||
* * refresh token (will also be sent as a cookie)
|
||||
* @param requestBody RefreshAuth
|
||||
* @result any
|
||||
* @returns any
|
||||
* @throws ApiError
|
||||
*/
|
||||
static authControllerRefresh(requestBody?: RefreshAuth): Promise<(ResponseAuth | JwtNotProvidedError | IllegalJWTError | UserNotFoundError | RefreshTokenCountInvalidError)>;
|
||||
@@ -47,7 +47,7 @@ export declare class AuthService {
|
||||
* Request a password reset token. <br> This will provide you with a reset token that you can use by posting to /api/auth/reset/{token}.
|
||||
* @param locale
|
||||
* @param requestBody CreateResetToken
|
||||
* @result ResponseEmpty
|
||||
* @returns ResponseEmpty
|
||||
* @throws ApiError
|
||||
*/
|
||||
static authControllerGetResetToken(locale?: string, requestBody?: CreateResetToken): Promise<ResponseEmpty>;
|
||||
@@ -56,7 +56,7 @@ export declare class AuthService {
|
||||
* Reset a user's utilising a valid password reset token. <br> This will set the user's password to the one you provided in the body. <br> To get a reset token post to /api/auth/reset with your username.
|
||||
* @param token
|
||||
* @param requestBody ResetPassword
|
||||
* @result any
|
||||
* @returns any
|
||||
* @throws ApiError
|
||||
*/
|
||||
static authControllerResetPassword(token: string, requestBody?: ResetPassword): Promise<(ResponseAuth | UserNotFoundError | UsernameOrEmailNeededError)>;
|
||||
|
||||
Reference in New Issue
Block a user