For AI agents: the documentation index is at llms.txt. Guide pages have a markdown version at the same path with .md appended, before any query string or fragment.
Creates a new user.
Be aware that if a user account exists in the system you may get back an error message that attempts to hide this information from the user. This method has support for PKCE via email signups. The PKCE flow cannot be used when autoconfirm is enabled.
const { data, error } = await supabase.auth.signUp({
email: '[email protected]',
password: 'example-password',
})
const { data, error } = await supabase.auth.signUp({
phone: '123456789',
password: 'example-password',
options: {
channel: 'sms'
}
})
const { data, error } = await supabase.auth.signUp({
phone: '123456789',
password: 'example-password',
options: {
channel: 'whatsapp'
}
})
const { data, error } = await supabase.auth.signUp(
{
email: '[email protected]',
password: 'example-password',
options: {
data: {
first_name: 'John',
age: 27,
}
}
}
)
const { data, error } = await supabase.auth.signUp(
{
email: '[email protected]',
password: 'example-password',
options: {
emailRedirectTo: 'https://example.com/welcome'
}
}
)