anchor.diff:  -spec get_token_credentials_verification_result(auth_manager:token_credentials()) ->
       {ok, auth_manager:verification_result()} | ?ERROR_NOT_FOUND.
   get_token_credentials_verification_result(TokenCredentials) ->
  -    Now = ?NOW(),
       try ets:lookup(?CACHE_NAME, TokenCredentials) of
  -        [#cache_entry{cache_expiration = Expiration} = Item] when
  -            Expiration == undefined;
  -            (is_integer(Expiration) andalso Now < Expiration)
  -        ->
  -            case Item#cache_entry.token_revoked of
  +        [#cache_entry{} = Entry] ->
  +            case has_cache_entry_expired(Entry) of
                   true ->
  -                    {ok, ?ERROR_TOKEN_REVOKED};
  +                    ?ERROR_NOT_FOUND;
                   false ->
  -                    {ok, Item#cache_entry.verification_result}
  +                    case Entry#cache_entry.token_revoked of
  +                        true -> {ok, ?ERROR_TOKEN_REVOKED};
  +                        false -> {ok, Entry#cache_entry.verification_result}
  +                    end
               end;
           _ ->
               ?ERROR_NOT_FOUND
  
positive.code:     ?debug("Received temporary tokens generation changed (gen: ~p) event for user ~s", [
          UserId, Generation
      ]),
      Expiration = ?NOW() + ?CACHE_ITEM_DEFAULT_TTL,
      ets:select_replace(?CACHE_NAME, ets:fun2ms(fun(#cache_entry{
          verification_result = {ok, _, _},
          token_ref = {temporary, Id, OldGeneration}
  
negative.code: handle_cast(?TOKEN_DELETED_MSG(TokenId), State) ->
      ?debug("Received token deleted event for token ~s", [TokenId]),
  
      Expiration = ?DEFAULT_EXPIRATION_INTERVAL(),
      ets:select_replace(?CACHE_NAME, ets:fun2ms(fun(#cache_entry{
          token_ref = {named, Id}
      } = CacheEntry) when Id == TokenId ->
  