validateGoogleToken

Validates a Google OAuth token, returning the JSON received from the server.

version(TwitchSupport && WithTwitchPlugin)
private
validateGoogleToken
(,
const string caBundleFile
)

Parameters

creds Credentials

Credentials aggregate.

caBundleFile string

Path to a cacert.pem bundle file.

Return Value

Type: auto

The server JSONValue response.

Throws

UnexpectedJSONException

on unexpected JSON.

ErrorJSONException

if the returned JSON has an "error" field.