feat: Authentication with backend

This commit is contained in:
Aleksi Lassila
2024-03-27 01:02:28 +02:00
parent 7318a0fa99
commit a574b718f0
21 changed files with 257 additions and 74 deletions

View File

@@ -0,0 +1,11 @@
import type createClient from 'openapi-fetch';
export abstract class Api<Paths extends NonNullable<unknown>> {
protected abstract baseUrl: string;
protected abstract client: ReturnType<typeof createClient<Paths>>;
protected abstract isLoggedIn: boolean;
getApi() {
return this.client;
}
}