KMPAuthUser

interface KMPAuthUser

Backend-agnostic representation of a signed-in user.

Implementations wrap the backend's own user type (for example a Firebase FirebaseUser or a Supabase UserInfo), which stays reachable through raw for callers that need backend-specific data.

Properties

Link copied to clipboard
abstract val displayName: String?

Display name, when the provider shared one.

Link copied to clipboard
abstract val email: String?

Email address, when the provider shared one.

Link copied to clipboard
abstract val photoUrl: String?

Profile photo URL, when the provider shared one.

Link copied to clipboard
abstract val providerId: String?

Identifier of the identity provider that produced this user, e.g. "google.com", "apple.com", "github.com", "facebook.com".

Link copied to clipboard
abstract val raw: Any?

The backend's native user object (e.g. dev.gitlive.firebase.auth.FirebaseUser). Escape hatch for backend-specific functionality; may be null for fakes.

Link copied to clipboard
abstract val uid: String

Stable unique identifier assigned by the auth backend.