fix: add logging

This commit is contained in:
David Nguyen
2024-04-30 15:50:22 +07:00
parent 97d334a1da
commit 8622e68853

View File

@ -39,7 +39,9 @@ export default async function auth(req: NextApiRequest, res: NextApiResponse) {
// Create the Stripe customer and attach it to the user if it doesn't exist.
if (user.customerId === null && IS_BILLING_ENABLED()) {
await getStripeCustomerByUser(user);
await getStripeCustomerByUser(user).catch((err) => {
console.error(err);
});
}
},
signOut: async ({ token }) => {