GoogleOptionsinterface
import { GoogleOptions } from '@mortar-kit/auth'
interface GoogleOptionsOptions for google.
Properties
clientId: stringOAuth client id (Google Cloud console › APIs & Services › Credentials, type "Web application").
clientSecret: stringThe client's secret: from the environment, never in code.
hostedDomain?: stringOnly accept accounts of this Google Workspace domain, e.g.
example.com(also hints the account picker).label?: stringButton text. Default "Continue with Google".
id?: stringThe method's id, in its URLs. Default
google.fetch?: { (input: URL | RequestInfo, init?: RequestInit): Promise<Response>; (input: string | Request | URL, init?: RequestInit): Promise<Response> }For tests: the fetch that calls Google's token endpoint.