feat: add garage.toml support (#30)

This commit is contained in:
Noste
2026-04-24 11:27:43 +02:00
committed by GitHub
parent a5f064761b
commit f1eeca60bf
19 changed files with 907 additions and 131 deletions
+8
View File
@@ -133,6 +133,7 @@ export const authApi = {
const response = await authApiClient.get<{
admin: { enabled: boolean };
oidc: { enabled: boolean; provider?: string };
token: { enabled: boolean };
}>('/config');
return response;
},
@@ -145,6 +146,13 @@ export const authApi = {
return response;
},
loginToken: async (token: string) => {
const response = await authApiClient.post<{ success: boolean; token: string; user: AuthUser }>('/login-token', {
token,
});
return response;
},
me: async () => {
const response = await authApiClient.get<{ success: boolean; user: AuthUser }>('/me');
return response;