Skip to content

Commit

Permalink
Fixes #840
Browse files Browse the repository at this point in the history
  • Loading branch information
underbluewaters committed Feb 7, 2025
1 parent 02f80b6 commit 1396aad
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/api/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,10 @@ app.use(
try {
await client.query("BEGIN");
let token: string | undefined = req.query.reporting_access_token;
// fixes https://github.com/seasketch/next/issues/840
if (token === "null" || token === "undefined" || token === "") {
token = undefined;
}
let claims:
| {
userId?: number;
Expand Down

0 comments on commit 1396aad

Please sign in to comment.