We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
confirmed_at
When calling the signup method while email confirmations are enabled, an error is thrown: TypeError: Cannot read property 'confirmed_at' of undefined.
signup
TypeError: Cannot read property 'confirmed_at' of undefined
First enable email confirmations in Supabase dashboard. Then:
const supabase = client.createClient(SUPABASE_URL, SUPABASE_API_KEY); const createUser = async () => { try { const { body: { user } } = await supabase.auth.signup("[email protected]", "password"); return user } catch (e) { return Promise.reject(e) } }; createUser() .then(res => console.log(res)) .catch(err => console.log(err))
Looks like the error is happening here:
supabase-js/src/Auth.js
Line 23 in 8318ed1
The response returned doesn't include a user key in the body. I think the body is the user object itself.
user
Signup should return response from POST request to /signup on auth url .
The text was updated successfully, but these errors were encountered:
good catch @hansy will get this patched asap
Sorry, something went wrong.
fix: #22 wont throw error for confirmation email signups
59d52b7
Merge pull request #24 from supabase/fix/#22
d014a7e
Successfully merging a pull request may close this issue.
Bug report
Describe the bug
When calling the
signup
method while email confirmations are enabled, an error is thrown:TypeError: Cannot read property 'confirmed_at' of undefined
.To Reproduce
First enable email confirmations in Supabase dashboard. Then:
Looks like the error is happening here:
supabase-js/src/Auth.js
Line 23 in 8318ed1
The response returned doesn't include a
user
key in the body. I think the body is the user object itself.Expected behavior
Signup should return response from POST request to /signup on auth url .
System information
The text was updated successfully, but these errors were encountered: