> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# PFEntityTokenExpiredEventHandler

> Manipulador de eventos de EntityToken expirado. Necessário para reautenticar jogadores em cenários em que o SDK não consegue atualizar automaticamente o EntityToken armazenado em cache.

Manipulador de eventos de EntityToken expirado. Necessário para reautenticar jogadores em cenários em que o SDK não consegue atualizar automaticamente o EntityToken armazenado em cache.

## Sintaxe

```cpp theme={null}
void PFEntityTokenExpiredEventHandler(  
    void* context,  
    const PFEntityKey* entityKey  
)  
```

### Parâmetros

**`context`**   void\*

Ponteiro de contexto opcional para dados usados pelo manipulador de eventos.

**`entityKey`**   [PFEntityKey\*](/pt-BR/services/playfab/api-references/c/pftypes/structs/pfentitykey-c)

O EntityKey da entidade cujo token de autenticação expirou.

### Valor de retorno

Tipo: void

## Requisitos

**Cabeçalho:** PFEntity.h

## Confira também

[Membros de PFEntity](/pt-BR/services/playfab/api-references/c/pfentity/pfentity_members)


## Related topics

- [PFEntityRegisterTokenExpiredEventHandler](/pt-BR/services/playfab/api-references/c/pfentity/functions/pfentityregistertokenexpiredeventhandler.md)
- [Tratando a expiração de tokens](/pt-BR/services/playfab/sdks/c/relogin.md)
- [Visão geral da API C de serviços - PFEntity.h](/pt-BR/services/playfab/api-references/c/pfentity/pfentity_members.md)
- [PFEntityUnregisterTokenExpiredEventHandler](/pt-BR/services/playfab/api-references/c/pfentity/functions/pfentityunregistertokenexpiredeventhandler.md)
- [PFEntityTokenRefreshedEventHandler](/pt-BR/services/playfab/api-references/c/pfentity/functions/pfentitytokenrefreshedeventhandler.md)
