Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/gotrue/src/index.ts>GoTrueApi#signUpWithEmail

An isomorphic Javascript library for GoTrue.
Latest
method GoTrueApi.prototype.signUpWithEmail
Re-export
import { GoTrueApi } from "https://deno.land/x/gotrue@3.0.0/src/index.ts";

Creates a new user using their email address.

Parameters

email: string

The email address of the user.

password: string

The password of the user.

optional
options: { redirectTo?: string; data?: Record<string, unknown>; } = [UNSUPPORTED]

A URL or mobile address to send the user to after they are confirmed.

Returns

Promise<{ data: Session | User | null; error: ApiError | null; }>

A logged-in session if the server has "autoconfirm" ON