Skip to content

Commit

Permalink
Simplify code
Browse files Browse the repository at this point in the history
  • Loading branch information
pauljohanneskraft committed Nov 7, 2024
1 parent ca976c1 commit 355db85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions functions/src/functions/blocking.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export const beforeUserCreatedFunction = beforeUserCreated(
})
await factory.trigger().userEnrolled(userDoc)

return { customClaims: invitation.content.user.claims as object }
return { customClaims: invitation.content.user.claims }
},
)

Expand All @@ -77,7 +77,7 @@ export const beforeUserSignedInFunction = beforeUserSignedIn(
const user = await userService.getUser(event.data.uid)
if (user !== undefined) {
logger.info(`beforeUserSignedIn finished successfully.`)
return { customClaims: user.content.claims as object }
return { customClaims: user.content.claims }
}
logger.info(`beforeUserSignedIn finished without user.`)
return { customClaims: {} }
Expand Down

0 comments on commit 355db85

Please sign in to comment.