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

emailEmailAddress

A valid email address.

handle?AccountHandle

The unique @ handle of an account.

Response Body

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": {}
}