implemented identity, updated session, added 'workings' list

added paginated querying, added 'common'
This commit is contained in:
lnn0q 2025-05-17 00:29:55 +03:00
parent 027deba422
commit 6ada519e06
36 changed files with 1422 additions and 279 deletions

View file

@ -31,7 +31,7 @@ export function useAuth(): UseAuthOutput {
successMsg: 'Logged out successfully.'
});
if (!authContext) throw new Error('useAuth must be used within an AuthProvider');
if (authContext == null) throw new Error('useAuth must be used within an AuthProvider');
return {
...authContext,
@ -45,7 +45,6 @@ export function useAuth(): UseAuthOutput {
}
}
});
if (data != null) {
authContext.setHeaders(data.login);
return data.login;