Autogenerated Password Strategy

In some cases you may want users to get already generated passwords to their emails. And this Autgenerated Password Strategy is want you need. Also, when using this strategy, email is verified automatically.

The API is simple. First user specifies his email and requests a registration through Autogenerated Password Strategy. Then Authembed will generate a random and secure password and send it to user's email. Then user looks into his inbox and uses password to log in.

Request the password

Request

POST /api/auth/register-with-autogenerated-password-sent-to-mail HTTP/1.1
Content-Type: application/json

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

Request parameters

Parameter name

Description

Email

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

Name

Full name.

Metadata

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

Response

HTTP/1.1 200

Last updated

Was this helpful?