minor thing but it is better to move this to the beginning of function because if accessToken is null/empty, there is no need to calculate exp at all.