🚀New lib version v0.13.1 [CI SKIP]
All checks were successful
continuous-integration/drone Build is passing
All checks were successful
continuous-integration/drone Build is passing
This commit is contained in:
18
dist/services/AuthService.js
vendored
18
dist/services/AuthService.js
vendored
@@ -6,10 +6,10 @@ 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
|
||||
* @returns any
|
||||
* @result any
|
||||
* @throws ApiError
|
||||
*/
|
||||
static async authControllerLogin(requestBody) {
|
||||
@@ -24,7 +24,7 @@ class AuthService {
|
||||
* Logout
|
||||
* Logout using your refresh token. <br> This instantly invalidates all your access and refresh tokens.
|
||||
* @param requestBody HandleLogout
|
||||
* @returns any
|
||||
* @result any
|
||||
* @throws ApiError
|
||||
*/
|
||||
static async authControllerLogout(requestBody) {
|
||||
@@ -38,10 +38,10 @@ class AuthService {
|
||||
/**
|
||||
* 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
|
||||
* @returns any
|
||||
* @result any
|
||||
* @throws ApiError
|
||||
*/
|
||||
static async authControllerRefresh(requestBody) {
|
||||
@@ -57,7 +57,7 @@ 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
|
||||
* @returns ResponseEmpty
|
||||
* @result ResponseEmpty
|
||||
* @throws ApiError
|
||||
*/
|
||||
static async authControllerGetResetToken(locale, requestBody) {
|
||||
@@ -76,7 +76,7 @@ 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
|
||||
* @returns any
|
||||
* @result any
|
||||
* @throws ApiError
|
||||
*/
|
||||
static async authControllerResetPassword(token, requestBody) {
|
||||
|
||||
Reference in New Issue
Block a user