PFAuthenticationServerLoginWithServerCustomIdAsync

Securely login a game client from an external server backend using a custom identifier for that player. Server Custom ID and Client Custom ID are mutually exclusive and cannot be used to retrieve the same player account.

Syntax

HRESULT PFAuthenticationServerLoginWithServerCustomIdAsync(  
    PFServiceConfigHandle serviceConfigHandle,  
    const char* secretKey,  
    const PFAuthenticationLoginWithServerCustomIdRequest* request,  
    XAsyncBlock* async  
)  

Parameters

serviceConfigHandle   PFServiceConfigHandle

PFServiceConfigHandle returned from PFServiceConfigCreateHandle call.

secretKey   char*
In_z

Title Secret Key used to authenticate the service request.

request   PFAuthenticationLoginWithServerCustomIdRequest*

Populated request object.

async   XAsyncBlock*
Inout

XAsyncBlock for the async operation.

Return value

Type: HRESULT

Result code for this API operation.

Remarks

This API is available on Win32, Linux, and macOS. When the asynchronous task is complete, call PFAuthenticationServerLoginWithServerCustomIdGetResult to get the result.

Requirements

Header: PFAuthentication.h

See also

PFAuthentication members