Skip to content

Commit 0db9e3c

Browse files
committed
Quick fix to ensure identity has claims defined.
1 parent f316a91 commit 0db9e3c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/identity.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/identity.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ export default class Identity {
22
constructor(data = {}) {
33
this.username = data.username;
44
this.userId = data.userId;
5-
this.claims = data.claims;
5+
this.claims = data.claims || {};
66
this.roles = data.claims && data.claims.roles || [];
77
}
88

0 commit comments

Comments
 (0)