GameServer.OAuth.GoogleIDToken (GameServer v1.0.509)

Verifies Google OpenID Connect id_tokens for native/mobile sign-in flows.

This module uses Google's tokeninfo endpoint to validate the token and extract the claims required by the server.

It is intentionally separate from the authorization-code exchange flow used by the web OAuth callbacks.

Summary

Types

claims()

@type claims() :: map()

Functions

verify(id_token, opts \\ [])

@spec verify(
  String.t(),
  keyword()
) :: {:ok, claims()} | {:error, term()}