SIDAC/node_modules/@supabase/auth-js
BenitoBB 1bee7e8ea8 benito 2025-04-25 17:40:09 -06:00
..
dist benito 2025-04-25 17:40:09 -06:00
src benito 2025-04-25 17:40:09 -06:00
LICENSE benito 2025-04-25 17:40:09 -06:00
README.md benito 2025-04-25 17:40:09 -06:00
package.json benito 2025-04-25 17:40:09 -06:00

README.md

auth-js

An isomorphic JavaScript client library for the Supabase Auth API.

Docs

Quick start

Install

npm install --save @supabase/auth-js

Usage

import { AuthClient } from '@supabase/auth-js'

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

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

Custom fetch implementation

auth-js uses the 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:

import { AuthClient } from '@supabase/auth-js'

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

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

Sponsors

We are building the features of Firebase using enterprise-grade, open source products. We support existing communities wherever possible, and if the products dont exist we build them and open source them ourselves.

New Sponsor

Watch this repo