Skip to content

Commit

Permalink
Update logging
Browse files Browse the repository at this point in the history
  • Loading branch information
pauljohanneskraft committed Nov 10, 2024
1 parent 6df4c03 commit f761a8e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions functions/src/services/user/databaseUserService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,11 @@ export class DatabaseUserService implements UserService {
)
throw new https.HttpsError('not-found', 'User not found.')
}
logger.info(`DatabaseUserService.updateClaims(${userId}): User found.`)
await this.auth.setCustomUserClaims(userId, user.content.claims)
const claims = user.content.claims
logger.info(
`DatabaseUserService.updateClaims(${userId}): Will set claims to ${JSON.stringify(claims)}.`,
)
await this.auth.setCustomUserClaims(userId, claims)
logger.info(
`DatabaseUserService.updateClaims(${userId}): User claims updated.`,
)
Expand Down

0 comments on commit f761a8e

Please sign in to comment.