Skip to content

Commit a07c004

Browse files
Log all info coming into beforeUserCreated
1 parent 5d9709e commit a07c004

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

functions/src/functions/blocking.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ export const beforeUserCreatedFunction = beforeUserCreated(
3737
const userService = factory.user();
3838
const credential = event.credential;
3939

40-
logger.info(`${userId}: About to check existence of credential.`);
40+
logger.info(
41+
`${userId}: About to check existence of credential ${JSON.stringify(credential)}.`,
42+
);
4143

4244
// Escape hatch for users using invitation code to enroll
4345
if (!credential) {
@@ -48,7 +50,7 @@ export const beforeUserCreatedFunction = beforeUserCreated(
4850
}
4951

5052
logger.info(
51-
`${userId}: About to check email address: ${event.data.email}.`,
53+
`${userId}: About to check email address: ${JSON.stringify(event.data)}.`,
5254
);
5355

5456
if (event.data.email === undefined) {

0 commit comments

Comments
 (0)