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

Commit

Permalink
Fix hook response
Browse files Browse the repository at this point in the history
  • Loading branch information
RodolfoSilva committed Apr 19, 2019
1 parent bc260af commit 78d40ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/auth-tools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const generateJwtToken = (user: User) => {

const payload = {
[vars.hasuraGraphqlClaimsKey]: {
[`${vars.hasuraHeaderPrefix}allowed-roles`]: userRoles,
[`${vars.hasuraHeaderPrefix}allowed-roles`]: userRoles.join(','),
[`${vars.hasuraHeaderPrefix}default-role`]: user.default_role,
[`${vars.hasuraHeaderPrefix}user-id`]: user.id.toString(),
},
Expand Down

0 comments on commit 78d40ee

Please sign in to comment.