denoland / saaskit

A modern SaaS template built on Fresh.
https://deno.com/saaskit
MIT License
1.21k stars 148 forks source link

Bug: Cannot read properties of null (reading 'email') while signup #59

Closed austin362667 closed 1 year ago

austin362667 commented 1 year ago

Hi, I'm using SaaSKit. It's a brilliant example of what I'm looking to do with Deno. Thanks for the great work!!

Getting this error 500 internal error: Cannot read properties of null (reading 'email') while signup. Auth looks good in my configured Supabse but the customers table is empty.

The error occurred during this line because of empty user data.

Maybe it's an issue from Supabase?

iuioiua commented 1 year ago

I was able to complete the signup flow without issue. Would you be able to give me more information? Are you using OAuth or email/password?

What do Supabase auth logs say?

austin362667 commented 1 year ago

Yes, I'm using email/password auth provider.

截圖 2023-04-11 上午10 10 21
iuioiua commented 1 year ago

I see an HTTP 401 response (unauthorized) on the top row. Could this be related?

Under Auth > Providers > Email, is Confirm email disabled as it should be?

austin362667 commented 1 year ago

No, I don't think so. I've followed these instructions carefully.

What if I enabled the Confirm email and verified it, will the error be the same?

austin362667 commented 1 year ago

But I think HTTP 401 response (unauthorized) is an issue not related to this repo. Closing the issue now. Anyway, thanks a lot for the help!