Start Sign in with Apple
POST
/v1/auth/nonce
const url = 'https://api.pocketbell.dev/v1/auth/nonce';const options = {method: 'POST'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.pocketbell.dev/v1/auth/nonceIssues a single-use nonce. Put its SHA-256 hash, in lowercase hex, in the Apple sign-in request, then send the nonce itself with the identity token.
Responses
Section titled “Responses”A new nonce.
Media typeapplication/json
object
nonce
required
Single use, valid for 10 minutes.
string
Examplegenerated
{ "nonce": "example"}