OmhAuthClient

interface OmhAuthClient

Types

Link copied to clipboard
interface Builder

Functions

Link copied to clipboard
abstract fun getAccountFromIntent(data: Intent?): OmhUserProfile
Link copied to clipboard
abstract fun getCredentials(): Any?

This method is designed for internal OMH libraries first and foremost. In case you need to access the account credentials yourself, do it with care, as you will have to cast it into the appropriate class. Read below to see what classes the returned object can be cast safely.

Link copied to clipboard
abstract fun getLoginIntent(): Intent
Link copied to clipboard
abstract fun getUser(): OmhUserProfile?
Link copied to clipboard
abstract fun revokeToken(): OmhTask<Unit>
Link copied to clipboard
abstract fun signOut(): OmhTask<Unit>

Logs out the user. This clears any stored data locally.