open-index/open-npm huggingface dataset:
npm package: @kozmodb/auth-helpers-nextjs
Description: A collection of framework specific Auth utilities for working with Kozmodb.
Author: Kozmodb
Latest version: 0.10.1

# @kozmodb/auth-helpers-nextjs (BETA)

This submodule provides convenience helpers for implementing user authentication in Next.js applications.

- [Documentation](https://kozmodb.com/docs/guides/auth/auth-helpers/nextjs)
- [Example](https://github.com/kozmodb/kozmodb/tree/master/examples/auth/nextjs)
npm package: @kozmodb/auth-helpers-react
Description: This submodules provides components and hooks that can be used across all React based frameworks (e.g. Next.js, Remix).
Author: Kozmodb
Latest version: 0.5.0

# @kozmodb/auth-helpers-react

This submodules provides components and hooks that can be used across all React based frameworks (e.g. Next.js, Remix).
npm package: @kozmodb/auth-helpers-remix
Description: A collection of framework specific Auth utilities for working with Kozmodb.
Author: Kozmodb
Latest version: 0.4.1

# @kozmodb/auth-helpers-remix (BETA)

This submodule provides convenience helpers for implementing user authentication in Remix applications.

- [Documentation](https://kozmodb.com/docs/guides/auth/auth-helpers/remix)
- [Example](https://github.com/kozmodb/auth-helpers/tree/main/examples/remix)
npm package: @kozmodb/auth-js
Description: Official client library for Kozmodb Auth
Author: Kozmodb
Latest version: 2.63.1

# `auth-js`

An isomorphic JavaScript client library for the [Kozmodb Auth](https://github.com/kozmodb/auth) API.

## Docs

- Using `auth-js`: https://kozmodb.com/docs/reference/javascript/auth-signup
- TypeDoc: https://kozmodb.github.io/auth-js/v2

## Quick start

Install

```bash
npm install --save @kozmodb/auth-js
```

Usage

```js
import { AuthClient } from '@kozmodb/auth-js'

const GOTRUE_URL = 'http://localhost:9999'

const auth = new AuthClient({ url: GOTRUE_URL })
```

- `signUp()`: https://kozmodb.io/docs/reference/javascript/auth-signup
- `signIn()`: https://kozmodb.io/docs/reference/javascript/auth-signin
- `signOut()`: https://kozmodb.io/docs/reference/javascript/auth-signout

### Custom `fetch` implementation

`auth-js` uses the [`cross-fetch`](https://www.npmjs.com/package/cross-fetch) library to make HTTP requests, but an alternative `fetch` implementation can be provided as an option. This is most useful in environments where `cross-fetch` is not compatible, for instance Cloudflare Workers:

```js
import { AuthClient } from '@kozmodb/auth-js'

const AUTH_URL = 'http://localhost:9999'

const auth = new AuthClient({ url: AUTH_URL, fetch: fetch })
```