diff --git a/android/app/src/main/java/de/hft/geotracker/activities/Login.kt b/android/app/src/main/java/de/hft/geotracker/activities/Login.kt index 54bc0d8..005cd3e 100644 --- a/android/app/src/main/java/de/hft/geotracker/activities/Login.kt +++ b/android/app/src/main/java/de/hft/geotracker/activities/Login.kt @@ -80,6 +80,7 @@ class Login : AppCompatActivity() { val headers = response.headers() val authentication = headers.get("Authorization") + deleteFile("JWToken") openFileOutput("JWToken", Context.MODE_PRIVATE).use { it.write(authentication!!.toByteArray()) }