Começa o login com passkey
POST/api/auth/passkeys/authentication/options
- Auth
- Public
- API key:
- No API key accepted
- X-CommunityId
X-CommunityIdSend the X-CommunityId of the community the operation happens in.
Endpoint descriptions come straight from the API specification and are in Portuguese for now. The interface around them is translated.
Login sem e-mail: o navegador mostra as passkeys desta comunidade que a pessoa tem. Passe as `options` a `startAuthentication({ optionsJSON: options })` e mande o resultado a `POST /api/auth/passkeys/authentication/verify`.
A passkey vale só no endereço da comunidade (o domínio próprio ou o endereço na Memberfy) em que foi cadastrada. A página precisa estar aberta num desses endereços: de outro (o hub, outra comunidade, um endereço local), **400** `PASSKEY_HOST_MISMATCH`. Comunidade sem endereço: **409** `PASSKEY_UNAVAILABLE`. Público; 60 chamadas por IP em 15 minutos (429).
Headers
| Name | Type | Description |
|---|---|---|
X-CommunityIdoptional | string (uuid) | ID da comunidade em que a operação acontece. Obrigatório na maioria dos endpoints com escopo de comunidade. |
Request body application/json
The specification does not declare the fields of this body (a multipart upload, for example). See the topic guide.
Responses
| Status | Description |
|---|---|
200 | Opções da cerimônia. |
400 | Requisição inválida — falha de validação. |
429 | Tentativas demais. O header `Retry-After` diz em quantos segundos tentar de novo. |
curl example
curl -X POST "https://api.memberfy.net/api/auth/passkeys/authentication/options" \
-H "X-CommunityId: $COMMUNITY_ID" \
-H "Content-Type: application/json" \
-d '{}'