Override old JWT on login
This commit is contained in:
parent
c124818fa6
commit
6334b62e2b
@ -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())
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user