1 operation. Every schema and example on this page is generated from the platform contract.
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.
applegoogleThe ID token the provider handed the page.
The raw one-time value this browser made; the token must carry its SHA-256 (hex).
Log in never makes an account.
signuploginApple only, the first time: the name Apple handed the page.
A new account was made by this sign-in.
An existing account on this address that nobody had proven was taken back for her: old password off, signed out everywhere else.
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"
}'import { createMembberClient } from "@membber/sdk-ts";
const membber = createMembberClient();
const { data, error } = await membber.raw.POST("/api/v1/auth/id-token", {
body: {
provider: "apple",
credential: "<credential>",
nonce: "<nonce>",
intent: "signup"
},
headers: { "Idempotency-Key": crypto.randomUUID() },
});
if (error) {
// Typed error envelope: { error: { code, message, requestId } }
throw new Error(`${error.error.code}: ${error.error.message}`);
}
console.log(data);import MembberSwift
let client = MembberClient(
serverURL: MembberClient.productionServerURL,
tokenProvider: { nil }
)
let response = try await client.api.webIdTokenSignIn(
body: .json(.init(
provider: .apple,
credential: "<credential>",
nonce: "<nonce>",
intent: .signup
))
).ok.body.json
print(response){
"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"
}
}