improved login page / login status

This commit is contained in:
Tobias Kurze
2019-11-26 15:25:36 +01:00
parent a9a94d6f3c
commit 42366def40
6 changed files with 191 additions and 61 deletions

View File

@@ -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);
}