setSignInCallback

Sets an optional callback to be invoked when operations are attempted while not signed in. When set, all operations (except subscriptions and initialization) will check 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 to handle sign-in. Pass null to disable automatic sign-in checking. The callback may throw exceptions which will be propagated to the caller.