Skip to content
id0n

Frameworks and platforms

Client entries for each framework and platform.

Framework or platformImport from
JavaScript@legation/client/client
React@legation/client/react
Vue@legation/client/vue
Svelte@legation/client/svelte
Solid@legation/client/solid
Lynx@legation/client/lynx
Expo@legation/expo/client, with @legation/client/react
Electron@legation/electron/client

Framework peers: React 18 or 19, Vue 3, Svelte 4 or 5, Solid 1.

Expo

lib/auth-client.ts
import { createAuthClient } from "@legation/client/react";
import { expoClient } from "@legation/expo/client";
import * as SecureStore from "expo-secure-store";

export const authClient = createAuthClient({
  baseURL: "https://dev-<environment-id>.<region>.<your-id0n-domain>" /* example */,
  plugins: [
    expoClient({ scheme: "myapp", storagePrefix: "myapp", storage: SecureStore }),
  ],
});

Set the scheme in your app.json, and register myapp:// as a trusted origin for the environment.

A listed integration is implemented. It is not certified for every framework, runtime, device or identity provider tenant.

On this page

Ask AI

Answers come from the published id0n docs, with links to their sources.