Skip to content

Commit

Permalink
Quick fix to ensure identity has claims defined.
Browse files Browse the repository at this point in the history
  • Loading branch information
brettmorien committed Jul 24, 2017
1 parent f316a91 commit 0db9e3c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/identity.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/identity.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export default class Identity {
constructor(data = {}) {
this.username = data.username;
this.userId = data.userId;
this.claims = data.claims;
this.claims = data.claims || {};
this.roles = data.claims && data.claims.roles || [];
}

Expand Down

0 comments on commit 0db9e3c

Please sign in to comment.