working login

This commit is contained in:
2024-02-29 16:52:41 -05:00
parent 8e34b45297
commit d7ebb12451
9 changed files with 523 additions and 41 deletions

View File

@@ -0,0 +1,12 @@
export default function authHeader (): Record<string, string> {
let user_token = localStorage.getItem('auth_user')
let auth_token = localStorage.getItem('auth_token')
if (user_token && auth_token) {
return { 'Authorization': 'bearer ' + auth_token };
}
else {
return {'Authorization': 'None'};
}
}