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

# PFEntityTokenRefreshedEventHandler

> Um manipulador invocado sempre que uma entidade é reautenticada automaticamente, obtendo assim um novo EntityToken. Uma entidade será reautenticada automaticamente.

Um manipulador invocado sempre que uma entidade é reautenticada automaticamente, obtendo assim um novo EntityToken. Uma entidade será reautenticada automaticamente antes que seu EntityToken expire.

## Sintaxe

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

### Parâmetros

**`context`**   void\*

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

**`entityKey`**   [PFEntityKey\*](https://docs.xbox.com/pt-BR/services/playfab/api-references/c/pftypes/structs/pfentitykey-c.md)

O EntityKey da entidade cujo EntityToken expirou.

**`newToken`**   [PFEntityToken\*](https://docs.xbox.com/pt-BR/services/playfab/api-references/c/pfentity/structs/pfentitytoken.md)

O novo token da entidade atualizada.

### Valor de retorno

Tipo: void

## Requisitos

**Cabeçalho:** PFEntity.h

## Confira também

[Membros de PFEntity](https://docs.xbox.com/pt-BR/services/playfab/api-references/c/pfentity/pfentity_members.md)


## Related topics

- [PFEntityRegisterTokenRefreshedEventHandler](https://docs.xbox.com/pt-BR/services/playfab/api-references/c/pfentity/functions/pfentityregistertokenrefreshedeventhandler.md)
- [Visão geral da API C de serviços - PFEntity.h](https://docs.xbox.com/pt-BR/services/playfab/api-references/c/pfentity/pfentity_members.md)
- [PFEntityUnregisterTokenRefreshedEventHandler](https://docs.xbox.com/pt-BR/services/playfab/api-references/c/pfentity/functions/pfentityunregistertokenrefreshedeventhandler.md)
- [PFEntityTokenExpiredEventHandler](https://docs.xbox.com/pt-BR/services/playfab/api-references/c/pfentity/functions/pfentitytokenexpiredeventhandler.md)
- [PFEntityUnregisterTokenExpiredEventHandler](https://docs.xbox.com/pt-BR/services/playfab/api-references/c/pfentity/functions/pfentityunregistertokenexpiredeventhandler.md)
