@Override public void afterAuthorizeSuccess(OAuth2Request o2request,Request request,Response response){
  Series<CookieSetting> cookiesSetInThisResponse=response.getCookieSettings();
  CookieSetting loginHintCookieSetting=cookiesSetInThisResponse.getFirst(LOGIN_HINT_COOKIE);
  if (loginHintCookieSetting != null && loginHintCookieSetting.getMaxAge() != 0) {
    cookiesSetInThisResponse.removeFirst(LOGIN_HINT_COOKIE);
  }
  removeCookie(request,response);
}

@ Override public void afterAuthorizeSuccess ( OAuth2Request o2request , Request request , Response response ) { Series < CookieSetting > cookiesSetInThisResponse = response . getCookieSettings ( ) ; CookieSetting loginHintCookieSetting = cookiesSetInThisResponse . getFirst ( LOGIN_HINT_COOKIE ) ; if ( loginHintCookieSetting != null && loginHintCookieSetting . getMaxAge ( ) != 0 ) { cookiesSetInThisResponse . removeFirst ( LOGIN_HINT_COOKIE ) ; } removeCookie ( request , response ) ; }
once we ' re returning an auth code we can remove the login hint cookie .
