Skip to main content

ConfigureOptions

@authgear/web / ConfigureOptions

Interface: ConfigureOptions

Table of contents

Properties

Properties

clientID

clientID: string

The OAuth client ID.

Defined in

packages/authgear-web/index.d.ts:274


endpoint

endpoint: string

The endpoint.

Defined in

packages/authgear-web/index.d.ts:278


sessionType

Optional sessionType: "cookie" | "refresh_token"

sessionType indicates how session is supposed to be stored. This must match the server side configuration.

If your backend is a server-side rendering website or webapp, then you should use cookie.

Normally, you need to set up a custom domain so that your backend and Authgear can both read and write cookie in the same root domain. You also need to tell the SDK cookie is being used, by specifying "cookie" here.

If not specified, default to "refresh_token".

Defined in

packages/authgear-web/index.d.ts:292