/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { ValidateAuthCodeDto } from "../models/ValidateAuthCodeDto";
import type { CancelablePromise } from "../core/CancelablePromise";
import { OpenAPI } from "../core/OpenAPI";
import { request as __request } from "../core/request";
export class UsersAuthService {
  /**
   * @returns any return sso redirection link
   * @throws ApiError
   */
  public static authControllerGetSsoUri(): CancelablePromise<any> {
    return __request(OpenAPI, {
      method: "GET",
      url: "/v1/auth/sso",
    });
  }
  /**
   * @param requestBody
   * @returns any return user data and jwt
   * @throws ApiError
   */
  public static authControllerValidateAuthCode(
    requestBody: ValidateAuthCodeDto,
  ): CancelablePromise<any> {
    return __request(OpenAPI, {
      method: "POST",
      url: "/v1/auth/sso",
      body: requestBody,
      mediaType: "application/json",
    });
  }
  /**
   * @returns any return user data and jwt
   * @throws ApiError
   */
  public static authControllerRefreshAuthToken(): CancelablePromise<any> {
    return __request(OpenAPI, {
      method: "POST",
      url: "/v1/auth/refresh-token",
    });
  }
}
