// services import { APIService } from "services/api.service"; // helpers import { API_BASE_URL } from "helpers/common.helper"; type TCsrfTokenResponse = { csrf_token: string; }; export class AuthService extends APIService { constructor() { super(API_BASE_URL); } async requestCSRFToken(): Promise { return this.get("/auth/get-csrf-token/") .then((response) => response.data) .catch((error) => { throw error; }); } }