getSessionSignature

open suspend override fun getSessionSignature(options: Options?): Result<Signature>

Requests a session signature based on the user's current identity.

Returns the cached signature immediately if one is available, wrapped in Result.success. Otherwise, performs a network request against the identity service. On success, updates signature and returns it. On failure, notifies listeners via IdentifyKitListener.onCredentialsValidationFailed and returns a failed Result wrapping the exception; this call never throws.

Return

A Result wrapping the Signature on success, or the failure otherwise.

Parameters

options

Optional request configuration. Defaults to the Core configuration.