apple-signin

Crates.ioapple-signin
lib.rsapple-signin
version0.2.0
created_at2024-01-19 15:30:56.031792+00
updated_at2025-11-21 06:57:04.165183+00
descriptionDecodes and validates identity tokens generated via Sign in with Apple
homepage
repositoryhttps://github.com/peterprototypes/apple-signin
max_upload_size
id1105398
size71,719
Peter Todorov (peterprototypes)

documentation

https://docs.rs/apple-signin

README

Apple Sign In for Rust

Crates.io Docs

This crate provides an API to verify and decode Apple's identity JWT, typically generated via the AuthenticationServices iOS Framework.

Usage

Add apple-signin to your project.

cargo add apple-signin

or

[dependencies]
apple-signin = "*"

And then, you can verify an identityToken obtained from ASAuthorizationAppleIDCredential

use apple_signin::AppleJwtClient;

#[tokio::main]
async fn main() -> Result<()> {
    let client = AppleJwtClient::new(&["com.example.myapp"]);
    let payload = client.decode("[IDENTITY TOKEN]").await?;

    dbg!(payload);

    Ok(())
}

For more detailed instructions, check out the documentation.

License

Commit count: 12

cargo fmt