Sign up with lazy email verification

Sign Up with lazy email verification

This is the easiest way to sign up. The user specifies it's email address, but is not required to verify it. The verification email is sent, but user can verify email address later.

Request

POST /api/auth/register-with-lazy-email-verification HTTP/1.1
Content-Type: application/json

{
    "email": Email,
    "password": Password,
    "name": Name,
    "metadata": Metadata
}

Request parameters

Parameter name

Description

Email

Email address of the user. A verification email will be sent to this address.

Password

A user specified password.

Name

Full name.

Metadata

Any arbitrary metadata. Should be a valid JSON object (e.g. {"key": "value"}).

Response

HTTP/1.1 200
Content-Type: application/json
Set-Cookie: authembed_access_token=AccessToken

{
    "accessToken": AccessToken,
    "user": User
}

Response parameters

Parameter name

Description

AccessToken

JWT access token. Should be saved for performing authenticated requests. The access token also is sent as a cookie named authembed_access_token .

User

User object. Read more in User object.

Last updated

Was this helpful?