Skip to main content
v0.1.0A Nitro 1.0 module for NitroUI

Sign in with Apple
for NitroUI apps

Apple's AuthenticationServices on iOS, with no third-party SDK. Typed credentials, hashed nonces and tagged errors, and a clean NOT_SUPPORTED on Android.

$bun add nitro-apple-signin

Three methods, nothing extra

Sign in, check the credential, read the error. The whole surface fits on one page.

Built for real sign-in flows

The details Apple leaves to you, handled in the module or documented here.

A few lines per flow

Sign in, check the credential at launch, and branch on typed error codes.

Read the guides
import { AppleSignIn } from 'nitro-apple-signin'

if (AppleSignIn.isSupported()) {
const credential = await AppleSignIn.signIn({
scopes: ['fullName', 'email'],
nonce: rawNonce,
})
if (credential !== undefined) {
// Email and name arrive only on the first sign-in.
await sendToBackend(credential.identityToken, credential.email)
saveUserId(credential.user)
}
}
3
Static methods on AppleSignIn
5
Tagged error codes
4
Credential states
iOS 16+
Minimum iOS version

Add Sign in with Apple today

Enable the capability, add one entitlement, call signIn.

Start the setup