const sdk = new GeensSdk(clientId, redirectUri, geensServerUri, logoutUri);
| Argument | Meaning |
|---|---|
clientId |
Registered Geens OAuth client ID. This is a public identifier, not a client secret. |
redirectUri |
Absolute application URL registered for the login callback. Load and initialize the SDK on this page. |
geensServerUri |
Geens server base URL, such as https://geens.com or https://beta.geens.com. |
logoutUri |
Optional absolute application URL used to complete popup logout. |
Use URLs without a trailing slash, and use the same login redirect URI in the SDK, your Geens OAuth registration, and your backend token exchange. A callback route can have a path; it does not have to be your application's home page. Server and application URLs are configured at runtime.
Create and reuse one SDK instance for your application's Geens session. Instances share local storage and server configuration. The SDK stores access tokens, user data, and the private key in the application's local storage.