siwa-async 0.5.1

Sign In With Apple Validation in Async Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use std::time::Duration;
pub(crate) const APPLE_ISSUER: &str = "https://appleid.apple.com";

pub(crate) const APPLE_PUB_KEYS_ENDPOINT: &str =
	"https://appleid.apple.com/auth/keys";
pub(crate) const APPLE_AUTH_TOKEN_ENDPOINT: &str =
	"https://appleid.apple.com/auth/token";

pub(crate) const APPLE_REVOKE_TOKENS_ENDPOINT: &str =
	"https://appleid.apple.com/auth/revoke";

// 6 months
pub(crate) const CLIENT_SECRET_VALID_DURATION_MAX: Duration =
	Duration::from_secs(15777000);