add admin setup token i love admin setup token

This commit is contained in:
WaveringAna 2025-01-27 22:32:49 -05:00
parent 660da70666
commit ac13e77dc4
15 changed files with 136 additions and 21 deletions

View file

@ -24,10 +24,11 @@ export const login = async (email: string, password: string) => {
return response.data;
};
export const register = async (email: string, password: string) => {
export const register = async (email: string, password: string, adminToken: string) => {
const response = await api.post<AuthResponse>('/auth/register', {
email,
password,
admin_token: adminToken,
});
return response.data;
};