feat: add event and check if user is logged in

This commit is contained in:
Zamitto 2024-06-19 12:07:33 -03:00
parent 6b03705d54
commit 17cfc7bb02
6 changed files with 21 additions and 3 deletions

View file

@ -14,6 +14,10 @@ export class HydraApi {
expirationTimestamp: 0,
};
static isLoggedIn() {
return this.userAuth.authToken !== "";
}
static async handleExternalAuth(auth: string) {
const { payload } = url.parse(auth, true).query;