add admin setup token i love admin setup token
This commit is contained in:
parent
660da70666
commit
ac13e77dc4
15 changed files with 136 additions and 21 deletions
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue