LogoutOutcome enum

Inheritance
Available extensions

Values

revoked → const LogoutOutcome

The key was revoked by this call.

alreadyGone → const LogoutOutcome

Nothing left to revoke — the revoke endpoint's own 400 (already revoked, unknown id, someone else's key), a 401 API key revoked from authMiddleware, or no matching key at all from a working listKeys call. Safe to delete the local file.

unresolvedInEnv → const LogoutOutcome

The stored key doesn't resolve against the environment this logout ran against — 401 Invalid API key or User not found from authMiddleware, most likely an --env mismatch with the login that minted it. The key may still be live elsewhere, so the local file — its only record — must be kept.

Properties

hashCode → int
The hash code for this object.
no setterinherited
index → int
A numeric identifier for the enumerated value.
no setterinherited
name → String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Constants

values → const List<LogoutOutcome>
A constant List of the values in this enum, in order of their declaration.