implemented identity, updated session, added 'workings' list
added paginated querying, added 'common'
This commit is contained in:
parent
027deba422
commit
6ada519e06
36 changed files with 1422 additions and 279 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue