diff --git a/app/src/main/java/com/devmike/gitissuesmobile/MainActivity.kt b/app/src/main/java/com/devmike/gitissuesmobile/MainActivity.kt index 6964e9c..103bcae 100644 --- a/app/src/main/java/com/devmike/gitissuesmobile/MainActivity.kt +++ b/app/src/main/java/com/devmike/gitissuesmobile/MainActivity.kt @@ -118,7 +118,14 @@ class MainActivity : ComponentActivity() { Toast.LENGTH_SHORT, ).show() } else { - res?.accessToken?.let { insertToken(it) } + res?.accessToken?.let { insertToken(it) }?:run { + Toast + .makeText( + this, + "Something went wrong please try again", + Toast.LENGTH_SHORT, + ).show() + } } } }