Skip to content

Commit

Permalink
Merge pull request #18 from formio/fix/FIO-6964_server-crush-with-ses…
Browse files Browse the repository at this point in the history
…sion-token-config

FIO-6964: Fixes server crashing if useSessionToken option passed
  • Loading branch information
travist authored Aug 15, 2023
2 parents dc35e3b + 8158f92 commit 92f606d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/sdk/Formio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1689,6 +1689,10 @@ export class Formio {
}

static useSessionToken(options: string | { namespace: string}) {
if (typeof localStorage === 'undefined') {
return;
}

let namespace = options
if (typeof options === 'object') {
options = options.namespace
Expand Down

0 comments on commit 92f606d

Please sign in to comment.