Replaced refresh tokens with hashed string, refactored logic

This commit is contained in:
Benjamin Sherriff
2024-01-30 11:10:57 -05:00
parent d74e8e181b
commit 40a45275d6
6 changed files with 161 additions and 244 deletions

View File

@@ -43,7 +43,7 @@ export async function me(): Promise<ResponseAuth | undefined> {
}
export async function hasSession(): Promise<boolean> {
const response = await getRequest('auth/check-session');
const response = await getRequest('auth/session');
if (response?.status === 200) {
return response?.json();
} else {