Skip to content

Commit

Permalink
fix: getToken with out supabase
Browse files Browse the repository at this point in the history
  • Loading branch information
Sören Michaels committed Nov 29, 2024
1 parent e127ac5 commit a2aee60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Frontend/src/lib/js/Player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ export class Player {
}
// TODO: put in helper folder
getToken() {
let session = supabase.auth.session();
let session = supabase?.auth?.session();

let token: string | undefined;

if (supabase.auth.session()?.access_token) {
if (supabase?.auth?.session()?.access_token) {
if (browser) {
token = session?.access_token;
}
Expand Down

0 comments on commit a2aee60

Please sign in to comment.