Skip to content

Commit

Permalink
fix: add {}
Browse files Browse the repository at this point in the history
  • Loading branch information
sargon64 committed Jan 14, 2024
1 parent e409266 commit 527130b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion apps/web/.env.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# apps/web
BEATFORGE_API_URL=
BEATFORGE_GITHUB_CALLBACK_URL=
MEILI_PREFIX=
4 changes: 2 additions & 2 deletions apps/web/src/routes/callback/github/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import jwt_decode from 'jwt-decode';
import { jwtDecode } from 'jwt-decode';
import { user } from '$lib/stores/user';
import { page } from '$app/stores';
import { goto } from '$app/navigation';
Expand All @@ -15,7 +15,7 @@
// I "fixed" this with a try/catch and reloading the page on login
// - fero
try {
user.set(jwt_decode(value.data.jwt));
user.set(jwtDecode(value.data.jwt));
} catch (e) {
console.error('An error occurred setting the JWT', e)
}
Expand Down

0 comments on commit 527130b

Please sign in to comment.