Skip to content

Commit

Permalink
community(sample-apps): update firebase-jwt functions (hasura#4057)
Browse files Browse the repository at this point in the history
  • Loading branch information
indatawetrust authored Apr 1, 2020
1 parent 58ba01f commit 89aaf1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion community/sample-apps/firebase-jwt/functions/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ exports.processSignUp = functions.auth.user().onCreate(user => {
// Check if user meets role criteria:
// Your custom logic here: to decide what roles and other `x-hasura-*` should the user get
let customClaims;
if (user.email && user.email.indexOf('@hasura.io') != -1) {
if (user.email && user.email.indexOf('@hasura.io') !== -1) {
customClaims = {
'https://hasura.io/jwt/claims': {
'x-hasura-default-role': 'admin',
Expand Down

0 comments on commit 89aaf1a

Please sign in to comment.