Skip to content

Commit 90c3541

Browse files
authored
fix JWT verification (#18957)
1 parent 01f100b commit 90c3541

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/server/src/session-handler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ export class SessionHandler {
113113
if (!subject) {
114114
throw new Error("Subject is missing from JWT session claims");
115115
}
116-
return await this.userService.findUserById(claims.subject, claims.subject);
116+
return await this.userService.findUserById(subject, subject);
117117
} catch (err) {
118118
log.warn("Failed to authenticate user with JWT Session", err);
119119
// Remove the existing cookie, to force the user to re-sing in, and hence refresh it

0 commit comments

Comments
 (0)