ClientSecret class

An ephemeral client secret for realtime API authentication.

Client secrets are short-lived tokens that can be used to authenticate WebSocket connections without exposing your main API key.

Annotations
  • @immutable

Constructors

ClientSecret({required String value, required int expiresAt})
Creates a ClientSecret.
const
ClientSecret.fromJson(Map<String, dynamic> json)
Creates a ClientSecret from JSON.
factory

Properties

expiresAt int
Unix timestamp when the secret expires.
final
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value String
The client secret value (starts with "ek_").
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts to JSON.
toString() String
A string representation of this object.
override

Operators

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