| Crates.io | apple-signin |
| lib.rs | apple-signin |
| version | 0.2.0 |
| created_at | 2024-01-19 15:30:56.031792+00 |
| updated_at | 2025-11-21 06:57:04.165183+00 |
| description | Decodes and validates identity tokens generated via Sign in with Apple |
| homepage | |
| repository | https://github.com/peterprototypes/apple-signin |
| max_upload_size | |
| id | 1105398 |
| size | 71,719 |
This crate provides an API to verify and decode Apple's identity JWT, typically generated via the AuthenticationServices iOS Framework.
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.