Auth

1 operation. Every schema and example on this page is generated from the platform contract.

Sign up or log in on membber.com with an Apple or Google ID token.

Verifies the token (signature, issuer, expiry, the web audience) and that it carries the SHA-256 of the raw nonce sent with it. Only a provider-verified address reaches an account or makes one; an address on a domain Membber no longer holds is refused (403 LAPSED_DOMAIN). Log in never makes an account (404 NO_ACCOUNT). An existing account whose address was never proven is taken back first. Same origin only. Answers a Supabase session for the browser to keep. PUBLIC: the token is the proof.

auth none, publicop webIdTokenSignInidempotent retryrate limitederrors

Request body

providerenumrequired
applegoogle
credentialstringrequired

The ID token the provider handed the page.

noncestringrequired

The raw one-time value this browser made; the token must carry its SHA-256 (hex).

intentenumrequired

Log in never makes an account.

signuplogin
namestringoptional

Apple only, the first time: the name Apple handed the page.

Response, 200

sessionobjectrequired
2 child fields
access_tokenstringrequired
refresh_tokenstringrequired
userobjectrequired
2 child fields
idstringrequired
emailstring, nullablerequired
createdbooleanrequired

A new account was made by this sign-in.

securedbooleanrequired

An existing account on this address that nobody had proven was taken back for her: old password off, signed out everywhere else.

prefillobjectrequired
2 child fields
ownerNamestring, nullablerequired
businessEmailstring, nullablerequired

Never an Apple relay address.

curl -X POST "https://www.membber.com/api/v1/auth/id-token" \
  -H "Idempotency-Key: 1f0e2d3c-4b5a-4678-9abc-def012345678" \
  -H "Content-Type: application/json" \
  -d '{
    "provider": "apple",
    "credential": "<credential>",
    "nonce": "<nonce>",
    "intent": "signup"
  }'
Response, 200
{
  "session": {
    "access_token": "<access_token>",
    "refresh_token": "<refresh_token>"
  },
  "user": {
    "id": "00000d1b-0000-4000-8000-d0c500000000",
    "email": "alex@example.com"
  },
  "created": true,
  "secured": true,
  "prefill": {
    "ownerName": "<ownerName>",
    "businessEmail": "alex@example.com"
  }
}
WhatsApp
Book a Call
Get Started
Auth API | Membber Developers