Prevent Infinite Redirects in Token Request