mirror of
https://github.com/bknd-io/bknd/
synced 2026-08-04 00:56:01 +00:00
updated examples: astro, nextjs, remix, bun, node
This commit is contained in:
@@ -128,6 +128,14 @@ export class Api {
|
||||
};
|
||||
}
|
||||
|
||||
async getVerifiedAuthState(force?: boolean): Promise<AuthState> {
|
||||
if (force === true || !this.verified) {
|
||||
await this.verifyAuth();
|
||||
}
|
||||
|
||||
return this.getAuthState();
|
||||
}
|
||||
|
||||
async verifyAuth() {
|
||||
try {
|
||||
const res = await this.auth.me();
|
||||
|
||||
Reference in New Issue
Block a user