makeLogin

suspend fun makeLogin(context: Context, tokenClientId: String): Result<String>

fun makeLogin.

It is the implementation using Google services, you only have to take care of the navigation when you receive the response.

Return

Result If the login was correct, result will be success and token will have a value. If the login was not correct, result will be failure.

Author

Joyner

Parameters

context

. It is mandatory.

tokenClientId

your client id after created your project in Firebase and configure Google Sign in. Is mandatory.