Companion

object Companion

Functions

anonymous
Link copied to clipboard
fun anonymous(reuseExisting: Boolean = true): Credentials

Creates credentials representing an anonymous user.

apiKey
Link copied to clipboard
fun apiKey(key: String): Credentials

Creates credentials representing a login using a user API key.

apple
Link copied to clipboard
fun apple(idToken: String): Credentials

Creates credentials representing a login using an Apple ID token.

customFunction
Link copied to clipboard
fun customFunction(payload: <ERROR CLASS>): Credentials
inline fun <T> customFunction(payload: T): Credentials
fun customFunction(payload: Map<String, *>): Credentials
fun <T> customFunction(payload: T, serializer: <ERROR CLASS><T>): Credentials

Creates credentials representing a login using an App Services Function. The payload would be serialized and parsed as an argument to the remote function. The payload keys must match the format and names the function expects.

emailPassword
Link copied to clipboard
fun emailPassword(email: String, password: String): Credentials

Creates credentials representing a login using email and password.

facebook
Link copied to clipboard
fun facebook(accessToken: String): Credentials

Creates credentials representing a login using a Facebook access token.

google
Link copied to clipboard
fun google(token: String, type: GoogleAuthType): Credentials

Creates credentials representing a login using a Google access token of a given GoogleAuthType.

jwt
Link copied to clipboard
fun jwt(jwtToken: String): Credentials

Creates credentials representing a login using a JWT Token. This token is normally generated after a custom OAuth2 login flow.