Const
Encrypts an AuthState object with a secret and optional time-to-live (TTL).
A type that extends the AuthState interface.
The secret used for encryption.
Optional
Optional time-to-live in seconds, after which the auth state expires.
Encrypted auth state string.
Encrypts an AuthState object with a secret and optional time-to-live (TTL).