JSPM

@supabase/auth-js

2.72.0-rc.12
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 6182265
  • Score
    100M100P100Q208775F
  • License MIT

Official client library for Supabase Auth

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@supabase/auth-js) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    auth-js

    An isomorphic JavaScript client library for the Supabase Auth API.

    pkg.pr.new

    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 don’t exist we build them and open source them ourselves.

    New Sponsor

    Watch this repo