AuthorizeOutcome

sealed interface AuthorizeOutcome

Result of an authorization attempt.

Inheritors

Types

Link copied to clipboard
data class Authorized(val auth: DriveAuth) : AuthorizeOutcome

Consent already exists — token is ready, no UI needed.

Link copied to clipboard
data class NeedsConsent(val intentSender: IntentSender) : AuthorizeOutcome

First-time (or re-)consent required. The UI must launch intentSender via an ActivityResultLauncher and feed the returned Intent to DriveAuthManager.tokenFromConsent.