open-index/open-npm huggingface dataset:
npm package: @nexight-ai/ojo-cloud-auth-js
Description: Browser SDK for generated OJO apps to start Google OAuth through the OJO broker hosted by `zk-agent-engine`.
Latest version: 0.1.1

# `@nexight-ai/ojo-cloud-auth-js`

Browser SDK for generated OJO apps to start Google OAuth through the OJO broker hosted by `zk-agent-engine`.

## Install

```bash
pnpm add @nexight-ai/ojo-cloud-auth-js
```

## Usage

```ts
import { createOjoCloudAuth } from '@nexight-ai/ojo-cloud-auth-js';

const auth = createOjoCloudAuth({
  brokerBaseUrl: 'https://ojo.art/api/agent-engine/v2/app/supabase/auth',
});

const result = await auth.signInWithOAuth('google', {
  redirect_uri: window.location.origin,
  extraParams: {
    supabase_url: 'https://your-project.supabase.co',
  },
});

if (result.redirected) {
  return;
}

if (result.error) {
  throw result.error;
}
```

## Notes

- Email/password flows should still call Supabase Auth directly from the generated frontend.
- Google OAuth requires `supabase_url` in `extraParams`; the broker resolves the bound project's runtime auth config server-side.
- In iframe/preview contexts the SDK uses `popup + postMessage`.
- In top-level window contexts the SDK falls back to full-page redirect.
npm package: @nexiojs/deno-adapter
Description: To install dependencies:
Latest version: 0.0.10

# deno-adapter

To install dependencies:

```bash
bun install
```

To run:

```bash
bun run index.ts
```

This project was created using `bun init` in bun v1.1.20. [Bun](https://bun.sh) is a fast all-in-one JavaScript runtime.
npm package: @nexiojs/plugins
Description: To install dependencies:
Latest version: 0.0.10

# plugins

To install dependencies:

```bash
bun install
```

To run:

```bash
bun run index.ts
```

This project was created using `bun init` in bun v1.1.20. [Bun](https://bun.sh) is a fast all-in-one JavaScript runtime.
npm package: @nexiojs/serverless
Description: To install dependencies:
Latest version: 0.0.10

# serverless

To install dependencies:

```bash
bun install
```

To run:

```bash
bun run index.ts
```

This project was created using `bun init` in bun v1.1.20. [Bun](https://bun.sh) is a fast all-in-one JavaScript runtime.