Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
baseUrl | string | - | packages/modelence/src/client/clientConfig.ts:4 |
credentials? | RequestCredentials | Credentials mode for method-call requests. Defaults to 'include', which browser apps need for the cookie-based flows (password reset, magic link). Clients configured with token-in-body auth (React Native / Expo) never use cookies, so set 'omit' there — on Expo Web a credentialed cross-origin request is otherwise blocked by any server answering Access-Control-Allow-Origin: *, surfacing as “TypeError: Failed to fetch”. | packages/modelence/src/client/clientConfig.ts:23 |
getAuthToken | () => undefined | string | - | packages/modelence/src/client/clientConfig.ts:5 |
getClientInfo | () => ClientInfo | - | packages/modelence/src/client/clientConfig.ts:7 |
openUrl? | (url) => void | Opens a URL for OAuth redirects. React Native must use (url) => Linking.openURL(url) — WebView is not supported. Defaults to window.location.href when not provided. | packages/modelence/src/client/clientConfig.ts:13 |
setAuthToken | (token) => void | - | packages/modelence/src/client/clientConfig.ts:6 |