AuthRedirectHandler

class AuthRedirectHandler(authRepository: AuthRepository)

App-level consumer of the OAuth redirect deep link (GoogleAuthCallback). run is launched once at the root of App and lives as long as the app, so a redirect completes sign-in no matter which screen is visible. The normal flow returns while the login sheet is open — but a sign-in deep link can equally arrive with no sheet showing, even cold-starting the app, which is why the sheet can't own this collection.

Success needs no event of its own: completing sign-in publishes AuthRepository.session, which the login sheet (and everything else) already observes.

Constructors

Link copied to clipboard
constructor(authRepository: AuthRepository)

Properties

Link copied to clipboard
val failures: SharedFlow<Unit>

A redirect arrived but completing sign-in failed — the login sheet shows its error off this.

Functions

Link copied to clipboard
suspend fun run()

Collects forever; launch once from an app-lifetime scope.