Skip to content

Commit

Permalink
Adding some default values to identity, make roles accessible.
Browse files Browse the repository at this point in the history
  • Loading branch information
brettmorien committed Jul 13, 2017
1 parent 2194163 commit f316a91
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
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.

1 change: 1 addition & 0 deletions src/identity.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ export default class Identity {
this.username = data.username;
this.userId = data.userId;
this.claims = data.claims;
this.roles = data.claims && data.claims.roles || [];
}

static anonymous = new Identity({
Expand Down

0 comments on commit f316a91

Please sign in to comment.