Override old JWT on login

This commit is contained in:
wiecktobi 2020-05-25 23:52:31 +02:00
parent c124818fa6
commit 6334b62e2b

View File

@ -80,6 +80,7 @@ class Login : AppCompatActivity() {
val headers = response.headers() val headers = response.headers()
val authentication = headers.get("Authorization") val authentication = headers.get("Authorization")
deleteFile("JWToken")
openFileOutput("JWToken", Context.MODE_PRIVATE).use { openFileOutput("JWToken", Context.MODE_PRIVATE).use {
it.write(authentication!!.toByteArray()) it.write(authentication!!.toByteArray())
} }