Set token to null when expired

Fix loop redirection when "/" is set to restricted and token is invalid (Set token to nil in order to redirect to AuthCodeURL)