Skip to content
This repository has been archived by the owner on May 30, 2021. It is now read-only.

Commit

Permalink
Fix header error
Browse files Browse the repository at this point in the history
  • Loading branch information
RodolfoSilva committed Apr 20, 2019
1 parent 78d40ee commit 1f9c187
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hasura-auth",
"version": "0.0.4",
"version": "0.0.5",
"description": "Simple auth for HASURA",
"main": "./build/index.js",
"scripts": {
Expand Down
1 change: 1 addition & 0 deletions src/auth-tools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export const generateJwtToken = (user: User) => {
[vars.hasuraGraphqlClaimsKey]: {
[`${vars.hasuraHeaderPrefix}allowed-roles`]: userRoles.join(','),
[`${vars.hasuraHeaderPrefix}default-role`]: user.default_role,
[`${vars.hasuraHeaderPrefix}role`]: user.default_role,
[`${vars.hasuraHeaderPrefix}user-id`]: user.id.toString(),
},
};
Expand Down

0 comments on commit 1f9c187

Please sign in to comment.