Skip to content

Commit

Permalink
stop console.error initial refresh
Browse files Browse the repository at this point in the history
This is not useful information since the initial refresh is expected to
fail for any first time visitors, expired sessions, etc.
  • Loading branch information
cmatheson committed Aug 30, 2024
1 parent ea9d74a commit 099e20b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/create-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,9 @@ export async function createClient(
try {
await refreshSession();
_scheduleAutomaticRefresh();
} catch (error) {
console.log("error refreshing...", error);
} catch {
// this is expected to fail if a user doesn't
// have a session. do nothing.
}
}
}
Expand Down

0 comments on commit 099e20b

Please sign in to comment.