APNs JWT token generation.
APNs uses a P8 private key (ES256 P-256) to authenticate HTTP/2 requests. The JWT contains:
iss: Team ID (Apple Developer Team ID)iat: Issued at timestampkid: Key ID from the APNs Auth Key
This JWT is used directly as the Bearer token in API requests.
Summary
Functions
Generate the APNs access token.
Like access_token/1 but also returns the unix-epoch expiry time, for cache use.
Build and sign the APNs JWT (ES256).
Types
@type jwt() :: String.t()
Functions
Generate the APNs access token.
Like access_token/1 but also returns the unix-epoch expiry time, for cache use.
Build and sign the APNs JWT (ES256).