In my server I can set the JWT tokens to expire after a given period of time.
Can I simply have this in my app?
async function getUserDetails() {
const token = await AsyncStorage.getItem('token') //got this token from successful login
const data = await axios.get(apiurl+'&JWT='+token)
console.log(data)
}
By the time the attacker physically gets a hold of the phone, jailbreak it and connect it to her computer, the JWT must have expired? Or am I not understanding something here?