Getting and refreshing access tokens in API client ts file - Kinde