← @mortar-kit/auth

GoogleOptionsinterface

import { GoogleOptions } from '@mortar-kit/auth'

interface GoogleOptions

Options for google.

Properties

clientId: string

OAuth client id (Google Cloud console › APIs & Services › Credentials, type "Web application").

clientSecret: string

The client's secret: from the environment, never in code.

hostedDomain?: string

Only accept accounts of this Google Workspace domain, e.g. example.com (also hints the account picker).

label?: string

Button text. Default "Continue with Google".

id?: string

The 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.