Skip to content

Commit

Permalink
Move JWT initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
ddimaria committed Nov 5, 2024
1 parent 7991c6b commit 7653c07
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ class Core {
private renderQueue: Function[] = [];

private async loadGridFile(file: string, addToken: boolean): Promise<Uint8Array> {
const jwt = await coreClient.getJwt();
let requestInit = {};

if (addToken) {
const jwt = await coreClient.getJwt();
requestInit = { headers: { Authorization: `Bearer ${jwt}` } };
}

Expand Down

0 comments on commit 7653c07

Please sign in to comment.