Server Credentials (Backend Sign-In)
Goal
Fetch platform-issued server credentials and send them to your backend for validation/sign-in.
Prerequisite
Make sure the player is authenticated first. Use use-case-1-auth-bootstrap.md.
Actions used
GameServicesLoadServerCredentialsGameServicesGetLoadServerCredentialsSuccessResult(on success)GameServicesGetLoadServerCredentialsError(on failure)
Flow
State:
LoadServerCredentialsAction:
GameServicesLoadServerCredentials(Optional) Input:
additionalScopes(comma-separated enum names)Events:
successEvent→GetServerCredentialsfailureEvent→GetLoadServerCredentialsError
State:
GetServerCredentialsAction:
GameServicesGetLoadServerCredentialsSuccessResultRead platform fields:
Android:
androidServerAuthCodeiOS:
iosPublicKeyUrl,iosSignature,iosSalt,iosTimestamp
Send the extracted fields to your backend and complete your server-side sign-in flow.
Notes
Values are platform-specific; expect the unused platform fields to be empty.
Keep this flow separate from gameplay-critical paths; it’s typically a “connect account” feature.
Last updated
Was this helpful?