setSignInCallback

abstract suspend fun setSignInCallback(callback: SudoPlatformSignInCallback?)

Set an optional callback to be invoked when an operation is attempted while the user is not signed in.

When set, all operations (except subscriptions and initialization) check the sign-in status and invoke this callback if the user is not signed in. Setting the callback to null disables automatic sign-in checking, restoring the default behavior where operations proceed without sign-in checks. If the callback throws an exception, that exception is propagated to the caller and the original operation is not executed.

Parameters

callback

An optional SudoPlatformSignInCallback A callback to handle sign-in, or null to disable automatic sign-in checking.