Skip to content

SDKs And Examples

Use this page when you need to pick the package closest to your app runtime.

Start with hosted-login helpers. Use low-level OAuth helpers only when your app needs full protocol control.

Start By Runtime

Runtime First guide
Next.js App Router Next.js Quickstart
React SPA React SPA Quickstart
Backend API only Backend API Quickstart
Local working example Run The Example App

Choose An SDK

Runtime Package or path Use it for
Browser TypeScript @sigid/client Hosted login, callback handling, logout, and client session helpers.
React @sigid/react React hooks and session state.
Vue @sigid/vue Vue composables.
Solid @sigid/solid Solid primitives.
Svelte @sigid/svelte Svelte stores.
Next.js @sigid/next Route handlers, server integration, and access-token helpers.
SvelteKit @sigid/sveltekit Hooks and server load integration.
SolidStart @sigid/solidstart Routes and server functions.
Expo @sigid/expo React Native / Expo storage and redirects.
Electron @sigid/electron Electron main/renderer authentication helpers.

Backend SDKs

Runtime Directory Use it for
Go sdks/go Go services, CLIs, and infrastructure tooling.
Rust sdks/rust Rust services and security-sensitive integrations.
Elixir sdks/elixir Phoenix, BEAM services, and server-side integrations.

For languages without an official SDK, use standard OAuth/OIDC libraries and the API reference for the deployment.

Example App Path

Use Run The Example App for a runnable walkthrough of examples/sdk-lab-next. It demonstrates:

  • browser setup with @sigid/client
  • hosted login with login()
  • callback handling with handleCallback()
  • logout with logout()
  • protected Next.js routes
  • server-side token validation
  1. Start with the quickstart that matches your runtime.
  2. Use the SDK closest to your app.
  3. Verify tokens on your backend.
  4. Protect each API route or resource.
  5. Add webhooks or agent auth only if the product needs them.

For the full API surface, continue to Reference: API And SDK Reference.