Firebase Authentication

class FirebaseAuthentication : DevAuthentication

Firebase Authentication Implementation

Author

Jimly A.

Since

15-Nov-21

Constructors

Link copied to clipboard
fun FirebaseAuthentication()

Functions

Link copied to clipboard
open override fun authenticateWithGoogle(token: String)

method to authenticate from token

Link copied to clipboard
open override fun getCurrentUser(): MobileServiceUser?

method to get currently logged in user

Link copied to clipboard
open override fun getUserIdToken(action: (String) -> Unit)

method to get id token of currently logged in user

Link copied to clipboard
open override fun logout()

method to logout currently logged in user

Link copied to clipboard
open override fun registerContract(activity: AppCompatActivity)

method to register Activity Result Contract

Link copied to clipboard
open override fun setAuthListener(listener: (Boolean) -> Unit)

method to listen for authentication changes

Link copied to clipboard
open override fun signInWith(    type: Int,     ctx: Activity,     action: (Boolean, String) -> Unit)

method to sign in with global provider

Link copied to clipboard
open override fun signInWithGoogle(action: (Boolean, String) -> Unit)

method to sign in with Google

Properties

Link copied to clipboard
open override var authAction: (Boolean, String) -> Unit? = null

Sources

Link copied to clipboard