Replaced refresh tokens with hashed string, refactored logic
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user