Wraps Assent.Strategy.Google for Sigra OAuth integration.
Google uses OIDC with auto-discovery from .well-known/openid-configuration (D-18).
Default scopes: openid, email, profile.
Summary
Functions
Generates the authorization URL for Google OAuth.
Handles the OAuth callback from Google.
Returns the default OAuth scopes for Google.
Verifies that the Assent library is available.
Normalizes a Google user info map to a consistent shape.
Functions
Generates the authorization URL for Google OAuth.
Delegates to Assent.Strategy.Google's authorize_url function with merged config.
Handles the OAuth callback from Google.
Delegates to Assent.Strategy.Google's callback function and normalizes the user info.
@spec default_scopes() :: [String.t()]
Returns the default OAuth scopes for Google.
@spec ensure_assent!() :: :ok
Verifies that the Assent library is available.
Raises a descriptive error if Assent is not loaded (D-14).
Returns :ok if available.
Normalizes a Google user info map to a consistent shape.
Returns a map with keys: "sub", "email", "name", "picture",
"email_verified", and "raw" (the original response).