diff --git a/striker-ui-api/src/session.ts b/striker-ui-api/src/session.ts index d127889c..77fd635e 100644 --- a/striker-ui-api/src/session.ts +++ b/striker-ui-api/src/session.ts @@ -99,11 +99,11 @@ export class SessionStore extends BaseSessionStore { ): Promise { stdoutVar({ session }, `Set session ${sid}`); - const { - passport: { user: userUuid }, - } = session; + const { passport: { user: userUuid } = {} } = session; try { + assert.ok(userUuid, 'Missing user identifier'); + const localHostUuid = getLocalHostUUID(); const modifiedDate = timestamp();