Skip to content

Commit 5b04cbb

Browse files
committed
Revert "fix JWT verification (#18957)"
This reverts commit 90c3541.
1 parent 90c3541 commit 5b04cbb

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(subject, subject);
116+
return await this.userService.findUserById(claims.subject, claims.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)