> ## 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.

# 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\*](/pt-BR/services/playfab/api-references/c/pftypes/structs/pfentitykey-c)

O EntityKey da entidade cujo EntityToken expirou.

**`newToken`**   [PFEntityToken\*](/pt-BR/services/playfab/api-references/c/pfentity/structs/pfentitytoken)

O novo token da entidade atualizada.

### 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

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