Interface FiefAuthProviderProps

Constructor parameters for the Fief client.

interface FiefAuthProviderProps {
    baseURL: string;
    children?: ReactNode;
    clientId: string;
    clientSecret?: string;
    encryptionKey?: string;
    requestInit?: RequestInit;
}

Hierarchy (view full)

Properties

baseURL: string

Base URL of your Fief tenant.

children?: ReactNode
clientId: string

ID of your Fief client.

clientSecret?: string

Secret of your Fief client.

It's not recommended to use it in the context of a browser app, since it can be easily found by the end-user in the source code. The recommended way is to use a Public client.

encryptionKey?: string

Encryption key of your Fief client. Necessary only if ID Token encryption is enabled.

requestInit?: RequestInit

Additional fetch init options for getOpenIDConfiguration and getJWKS requests.

Mostly useful to control fetch cache.