AppStoreCredentials class Null safety

Create a JWT token with the given payload and algorithm

Constructors

AppStoreCredentials({required String issuerId, required String keyId, required String privateKey, String audience = 'appstoreconnect-v1'})
Create a JWT token with the given payload and algorithm

Properties

audience String
Your key ID from the API Keys page in App Store Connect;
final
currentToken String
Get the last JWT token generated.
read-only
hashCode int
The hash code for this object.
read-only, inherited
isExpired bool
Whether the token is expired.
read-only
issuerId String
Your issuer ID from the API Keys page in App Store Connect; for example, 57246542-96fe-1a63-e053-0824d011072a.
final
keyId String
Your private key ID from App Store Connect; for example 2X9R4HXF34.
final
privateKey String
Your private key from App Store Connect.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
sign() → void
Signs the JWT with the private key and returns the token.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

maximumTokenLifeTime → const Duration
The time the JWT token lasts.
Duration(minutes: 15)