GatelyProvider Props
All framework SDKs share the same provider props:
apiKey (Required)
Your project API key from the dashboard.
Always use environment variables — never hardcode API keys in source code.
apiUrl
Override the default API endpoint. Only needed for custom deployments.
autoRefresh
Automatically refresh the session before it expires.
Environment-Based Config
Node.js SDK Config
MiddlewareOptions
Session Storage
Sessions are stored in localStorage and as cookies for cross-origin support:
Debugging
Enable verbose SDK logging in the browser:
Disable: