AuthApiKeyClientFixture class final

Safe API-key metadata and one-time issuance payloads for client tests.

Constructors

AuthApiKeyClientFixture({String userId = 'fixture-user-id', String keyId = 'fixture-key-id'})
Creates a deterministic API-key fixture.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
keyId → String
Public identifier associated with the fixture key.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
userId → String
User identifier associated with the fixture key.
final

Methods

issued() → Map<String, dynamic>
One-time creation or rotation response with an obvious test-only key.
list() → Map<String, dynamic>
List response containing only safe metadata.
metadata({bool active = true}) → Map<String, dynamic>
Public metadata that never contains a raw key or hash.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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