anchor.diff:      ok = tts_session:clear_oidc_state_nonce(Session),
       VerToken = oidcc:parse_and_validate_token(Token,OpenIdProviderId ,OidcNonce),
       try_to_set_user(VerToken, ReqMap);
  -    %% redirect_to(user_page, Req, State);
   handle_oidc_token({error, Error}, ReqMap) ->
  -    show_error_page(Error, ReqMap).
  +    show_error_and_close_sessino(Error, ReqMap).
   
   
   show_select_page(ReqMap) ->
  
positive.code:     redirect_to(user_page,ReqMap);
  set_valid_user(_,ReqMap) ->
      Error = <<"Invalid/Unknown User">>,
      show_error_page(Error, ReqMap).
  
  redirect_to(auth_server, #{op_id := OpenIdProvider, session:=Session}) ->
      {ok, OidcState} = tts_session:get_oidc_state(Session),
  
negative.code: redirect_to(_, _ReqMap) ->
      create_redirection("/").
  
  show_error_and_close_sessino(Error,ReqMap) ->
      show_error(Error, ReqMap, true).
  
  show_error(Error,#{session := Session},CloseSession) ->
      CookieAction = case CloseSession of
                         true ->
                             ok = tts_session:close(Session),
                             clear;
                         false ->
                             update
                     end,
      #{error => Error, status => 400, cookie => CookieAction}.
  
  
  create_redirection(Url) ->
      #{header => [{<<"location">>,Url}], cookie => update, status => 302}.
       
  
  