I'm using .NET Web API and bearer tokens for our app. Everything is fine until the token expires while using the app which causes it to crash because it can't parse the JSON response. How can I handle the token expiration throughout the entire app ? I could check the expiration before each request but that seems messy. I've also played around with the MessagingCenter but I'm having a hard time conceptualizing how that would work for the entire app.
↧