KeysService class

API key CRUD against /v1/auth/api-keys, always authenticated with the caller's stored key — that's what makes the EMAIL_NOT_VERIFIED gate a non-issue, since it only fires on a Firebase-token create. Call-injected Dio (never ApiClient.forKey itself), so tests swap in FakeAdapter the same way test/helpers/auth_fake_routes.dart already does for AuthService. Never calls exit() — every failure is a thrown AuthCliFault and the command decides the exit code and printed line.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

create({required Dio apiDio, required String name}) → Future<Map<String, dynamic>>
findByName({required Dio apiDio, required String name}) → Future<Map<String, dynamic>?>
Used by keys revoke's in-use check and the login --key #74 orphan warning — both need "is there an active key with this exact name", not the whole list.
list({required Dio apiDio}) → Future<List<Map<String, dynamic>>>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
revoke({required Dio apiDio, required String keyId}) → Future<void>
toString() → String
A string representation of this object.
inherited

Operators

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

Static Properties

ins → KeysService
final