Storyden
Auth

Auth Email Signin

Sign in to an existing account with an email and optional password. The behaviour of this endpoint depends on how the instance is configured. If email+password is the preferred method, a cookie is returned on success but if magic links are preferred, the endpoint will start the code flow.

Sign in to an existing account with an email and optional password. The behaviour of this endpoint depends on how the instance is configured. If email+password is the preferred method, a cookie is returned on success but if magic links are preferred, the endpoint will start the code flow.

POST/auth/email/signin
storyden-session<token>

In: cookie

Request Body

application/json

email*string

A valid email address.

handle?string

The unique @ handle of an account.

Response Body

application/json

application/json

curl -X POST "https://loading/api/auth/email/signin" \  -H "Content-Type: application/json" \  -d '{    "email": "hello@storyden.org"  }'
{
  "id": "string"
}
Empty
Empty
{
  "error": "string",
  "message": "string",
  "suggested": "string",
  "metadata": {}
}