Skip to content

Commit

Permalink
ar(fix) remove logs
Browse files Browse the repository at this point in the history
  • Loading branch information
angeloreale committed Aug 30, 2024
1 parent d8770c8 commit bfcf11f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/auth/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ export const authConfig = {
const { user, isNewUser } = props;
try {
if (isNewUser) {
console.log('Events: Running side-effects');
// [DPCP-125] https://www.notion.so/angeloreale/Hypnos-Feature-use-lib-log-for-server-console-logs-67993255fc4e4010a08fee263089f9b7?pvs=4
console.log('dp::hypnos::Running sign-up side-effects');
await allUsersSideEffects({ user });
}
} catch (e) {
Expand All @@ -132,10 +133,10 @@ export const authConfig = {
callbacks: {
async signIn(props) {
const { user } = props;
console.log({ props, user });
try {
if (user) {
console.log('Callback: Running side-effects');
// [DPCP-125] https://www.notion.so/angeloreale/Hypnos-Feature-use-lib-log-for-server-console-logs-67993255fc4e4010a08fee263089f9b7?pvs=4
console.log('dp::hypnos::Callback: Running sign-in side-effects');
await allUsersSideEffects({ user });
}
} catch (e) {
Expand Down

0 comments on commit bfcf11f

Please sign in to comment.