improved login page / login status
This commit is contained in:
@@ -23,6 +23,10 @@ export function authenticate(userData: any) {
|
||||
return axios.post(`${API_URL}/auth/login`, userData);
|
||||
}
|
||||
|
||||
export function revokeRefreshKey(jwt: any) {
|
||||
return axios.post(`${API_URL}/auth/revokeRefreshToken`, { headers: { Authorization: `Bearer ${jwt}` } });
|
||||
}
|
||||
|
||||
export function register(userData: any) {
|
||||
return axios.post(`${API_URL}/auth/register`, userData);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user