Companion

object Companion

Functions

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

Creates credentials representing an anonymous user.

Link copied to clipboard

Creates credentials representing a login using a user API key.

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

Creates credentials representing a login using an Apple ID token.

Link copied to clipboard
fun customFunction(payload: BsonDocument): Credentials
fun <T> customFunction(payload: T, serializer: KSerializer<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.

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

Creates credentials representing a login using email and password.

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

Creates credentials representing a login using a Facebook access token.

Link copied to clipboard

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

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.