OptionalapiHiyve API key for your organization.
Must start with pk_live_ (production) or pk_test_ (development).
Obtain this from the Hiyve console.
Optional when using proxy mode. When omitted and no baseUrl is set,
defaults to proxy mode with baseUrl = '/api/hiyve/identity'.
OptionalautoAutomatically refresh tokens before they expire (default: true)
OptionalbaseCustom API base path (default: '/identity/auth'). Ignored when baseUrl is set.
OptionalbaseFull base URL for proxy mode.
When set, requests are sent directly to this URL instead of the
Hiyve Cloud API. The customer's server proxy injects the API key.
Defaults to '/api/hiyve/identity' when neither apiKey nor
baseUrl is provided.
Child components that can access identity hooks
OptionalenvironmentAPI environment.
'production' (default)'development'OptionalrefreshSeconds before token expiry to trigger a refresh (default: 300)
OptionaltimeoutRequest timeout in milliseconds (default: 30000)
OptionaltokenWhere to persist authentication tokens.
'localStorage' (default): Survives page refreshes and browser restarts'memory': Cleared on page refresh; useful for sensitive environments
Props for the IdentityProvider component.
Only
apiKeyis required. All other settings have sensible defaults for production use. Useenvironment: 'development'to target the development API server.