I am using strongloop to make mobile APIs. In Stongloop accessToken expires after 14 days.
So the scenario is like below:
Day 1
- User login & get AccessToken
- Using this accessToken request for Other APIs(like get all users list)
Day 15 (accessToken is expired)
- Using accessToken got on Day 1 request for API - get all users list
On day 15 it will respond with access deny.. because access token is expired..
I want to make such API that if user open App On Day 1 & then Day 15. it should be logged In automatically. with new accessToken.
In short: I want to make such mechanism that if accessToken is expired It should re-generate accessToken & provide in response.
Other suggestion to make workflow like mine?