data again .
.....
So is it normal or the best way ?
I‘d say using an access_token in combination with a refresh_token is quite normal for secure api development. Considering of course both is implemented correctly. That one request really should not hurt. Theoretically the app could even know (time) that the token is no longer valid before sending the request, that should prevent most requests. And then if there still are a couple requests and the BE returns a 401 it would also not hurt... But let‘s ask from the other side first. How would you do it?
I dont do it . Because this scenario ombiguous for me !
but session based implementation is better than token based is that right?
Обсуждают сегодня