generated from VLADIMIR/template_frontend
clear
This commit is contained in:
@@ -1,8 +1,13 @@
|
||||
import { useAuthStore } from "@/stores/auth";
|
||||
import { createEveningDetectiveServerClient, type EveningDetectiveServer } from "./generated/crabs/evening_detective_server";
|
||||
import { createHttpHandler } from "./generated/crabs/evening_detective_server/client";
|
||||
|
||||
export function getAuthClient() {
|
||||
const authStore = useAuthStore();
|
||||
return buildAuthClient(authStore.refreshTokenAction, authStore.getToken)
|
||||
}
|
||||
|
||||
export function buildAuthClient(
|
||||
function buildAuthClient(
|
||||
refreshTokens: () => Promise<boolean>,
|
||||
getToken: () => string | null,
|
||||
): EveningDetectiveServer {
|
||||
|
||||
Reference in New Issue
Block a user