For AI agents: the documentation index is at llms.txt. Guide pages have a markdown version at the same path with .md appended, before any query string or fragment.

Swift: Sign in with ID token (native sign-in)

Examples

Sign In using ID Token

let nonce = Nonce.generate()
// Pass nonce.hashed to the provider, for example as request.nonce
// in SignInWithAppleButton.

let session = try await supabase.auth.signInWithIDToken(
  IDTokenCredentials(
    provider: .apple,
    idToken: "your-id-token",
    nonce: nonce.raw
  )
)