KumihoCredentials class

Cached credentials from the kumiho-cli authentication.

Constructors

KumihoCredentials({required String apiKey, required String email, required String refreshToken, required String idToken, required int expiresAt, String? projectId, String? controlPlaneToken, int? cpExpiresAt})
Creates credentials from JSON data.
KumihoCredentials.fromJson(Map<String, dynamic> json)
Creates credentials from a JSON map.
factory

Properties

apiKey → String
Firebase API key.
final
controlPlaneToken → String?
Control Plane JWT token.
final
cpExpiresAt → int?
Unix timestamp when the CP token expires.
final
email → String
User email.
final
expiresAt → int
Unix timestamp when the ID token expires.
final
hashCode → int
The hash code for this object.
no setterinherited
idToken → String
Firebase ID token.
final
isCpValid → bool
Checks if the Control Plane token is still valid.
no setter
isValid → bool
Checks if the ID token is still valid.
no setter
projectId → String?
Optional project ID.
final
refreshToken → String
Refresh token for obtaining new ID tokens.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({String? apiKey, String? email, String? refreshToken, String? idToken, int? expiresAt, String? projectId, String? controlPlaneToken, int? cpExpiresAt}) → KumihoCredentials
Creates a copy with updated fields.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Converts to JSON map.
toString() → String
A string representation of this object.
inherited

Operators

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