Skip to content

Commit

Permalink
Removed errors not being thrown
Browse files Browse the repository at this point in the history
  • Loading branch information
james-pre committed Mar 14, 2024
1 parent cfd09ea commit c90abd7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/utils.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import type { AstroCookies, AstroGlobal } from 'astro';
import { type Account, getAccount, auth, config, AccountType } from '@blankstorm/api';

config.throw_errors = false;
import { type Account, getAccount, auth, AccountType } from '@blankstorm/api';

export async function currentUser(cookies: AstroCookies): Promise<Account | undefined> {
if (!cookies.has('token')) {
Expand Down

0 comments on commit c90abd7

Please sign in to comment.