Skip to content

Commit ed6ee06

Browse files
authored
chore: update stoat-api (#168)
* chore: update stoat-api Signed-off-by: İspik <ispik@ispik.dev> * chore: update stoat-api Signed-off-by: İspik <ispik@ispik.dev> --------- Signed-off-by: İspik <ispik@ispik.dev>
1 parent 4573e6b commit ed6ee06

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"@vladfrangu/async_event_emitter": "^2.4.6",
3232
"json-with-bigint": "^3.4.4",
3333
"solid-js": "^1.9.6",
34-
"stoat-api": "0.13.5",
34+
"stoat-api": "0.14.0",
3535
"ulid": "^3.0.2"
3636
},
3737
"devDependencies": {

‎pnpm-lock.yaml‎

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/classes/MFA.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@ export class MFA {
3131
* Whether authenticator app is enabled
3232
*/
3333
get authenticatorEnabled(): boolean {
34-
return this.#store[0].totp_mfa;
34+
return this.#store[0].totp_mfa ?? false;
3535
}
3636

3737
/**
3838
* Whether recovery codes are enabled
3939
*/
4040
get recoveryEnabled(): boolean {
41-
return this.#store[0].recovery_active;
41+
return this.#store[0].recovery_active ?? false;
4242
}
4343

4444
/**

0 commit comments

Comments
 (0)