I'm trying to get a token but nothing is happening. Here is my code:
fun handleLogin() {
println("about to get token")
launch {
print("getting token")
val token = service.getToken(code = code, verifier = verifier).await()
print("token is $token")
}
}
It prints out the "about to get token" but never prints out the "getting token" nor the "token is $token". I know it's not Retrofit because it works when I use the basic enqueue functionality. Any ideas?
I'm trying to get a token but nothing is happening. Here is my code:
It prints out the "about to get token" but never prints out the "getting token" nor the "token is $token". I know it's not Retrofit because it works when I use the basic
enqueue
functionality. Any ideas?