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

# PFAuthenticationValidateEntityTokenAsync

> Método para um servidor validar um EntityToken fornecido pelo cliente. Só pode ser chamado pela entidade de título.

Método para um servidor validar um EntityToken fornecido pelo cliente. Só pode ser chamado pela entidade de título.

## Sintaxe

```cpp theme={null}
HRESULT PFAuthenticationValidateEntityTokenAsync(  
    PFEntityHandle entityHandle,  
    const PFAuthenticationValidateEntityTokenRequest* request,  
    XAsyncBlock* async  
)  
```

### Parâmetros

**`entityHandle`**   PFEntityHandle

PFEntityHandle a ser usado para autenticação.

**`request`**   [PFAuthenticationValidateEntityTokenRequest\*](/pt-BR/services/playfab/api-references/c/pfauthenticationtypes/structs/pfauthenticationvalidateentitytokenrequest)

Objeto de solicitação preenchido.

**`async`**   XAsyncBlock\*<br />*Inout*

XAsyncBlock para a operação assíncrona.

### Valor de retorno

Tipo: HRESULT

Código de resultado desta operação de API.

## Comentários

Esta API está disponível no Win32, Linux e macOS. Dado um token de entidade, valida se ele não expirou nem foi revogado e retorna detalhes do proprietário. Quando a tarefa assíncrona for concluída, chame [PFAuthenticationValidateEntityTokenGetResultSize](/pt-BR/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationvalidateentitytokengetresultsize) e [PFAuthenticationValidateEntityTokenGetResult](/pt-BR/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationvalidateentitytokengetresult) para obter o resultado.

## Requisitos

**Cabeçalho:** PFAuthentication.h

## Confira também

[Membros de PFAuthentication](/pt-BR/services/playfab/api-references/c/pfauthentication/pfauthentication_members)


## Related topics

- [PFAuthenticationValidateEntityTokenGetResult](/pt-BR/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationvalidateentitytokengetresult.md)
- [Visão geral da API C do Services - PFAuthentication.h](/pt-BR/services/playfab/api-references/c/pfauthentication/pfauthentication_members.md)
- [PFAuthenticationValidateEntityTokenGetResultSize](/pt-BR/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationvalidateentitytokengetresultsize.md)
- [PFAuthenticationValidateEntityTokenResponse](/pt-BR/services/playfab/api-references/c/pfauthenticationtypes/structs/pfauthenticationvalidateentitytokenresponse.md)
- [PFAuthenticationValidateEntityTokenRequest](/pt-BR/services/playfab/api-references/c/pfauthenticationtypes/structs/pfauthenticationvalidateentitytokenrequest.md)
