request in the auth file in the server side

I'm using nuxt 3 and the stripe pluging I have this
stripe({
stripeClient,
createCustomerOnSignUp: true,
onCustomerCreate: async ({ customer, stripeCustomer, user }, request) => {
// Do something with the newly created customer
console.log('Resquest', request);
console.log('Customer created:', customer);
console.log('Stripe Customer:', stripeCustomer);
console.log('User:', user);
},
stripe({
stripeClient,
createCustomerOnSignUp: true,
onCustomerCreate: async ({ customer, stripeCustomer, user }, request) => {
// Do something with the newly created customer
console.log('Resquest', request);
console.log('Customer created:', customer);
console.log('Stripe Customer:', stripeCustomer);
console.log('User:', user);
},
the problem is thisconsole.log('Resquest', request); is undefined always, I'm doing something wrong, but it happened with all property that have request in the auth.ts file.
3 Replies
alejandrojnm
alejandrojnmOP3mo ago
Hi thanks for this, there is anyway that I can use the fix, until the new release is made ???

Did you find this page helpful?