getComputeAuthToken
inline suspend fun GameLiftClient.getComputeAuthToken(crossinline block: GetComputeAuthTokenRequest.Builder.() -> Unit): GetComputeAuthTokenResponse
Requests an authentication token from Amazon GameLift for a registered compute in an Anywhere fleet. The game servers that are running on the compute use this token to authenticate with the Amazon GameLift service. Each server process must provide a valid authentication token in its call to the Amazon GameLift server SDK action InitSDK()
.
Authentication tokens are valid for a limited time span. Use a mechanism to regularly request a fresh authentication token before the current token expires.
Learn more
Server SDK reference guides (for version 5.x)