ensureSignedIn

suspend fun ensureSignedIn()

Checks if the user is signed in and invokes the callback if needed.

This method performs the following:

  1. If no callback is set, returns immediately

  2. Checks if the user is signed in using SudoUserClient.isSignedIn

  3. If not signed in, invokes the callback's SudoPlatformSignInCallback.signIn method

Throws

Any error thrown by the callback's signIn() method, or errors from checking sign-in status.