Negligent Pachinko Machine

    @supabase/gotrue-js
    TypeScript icon, indicating that this package has built-in type declarations

    1.22.15 • Public • Published

    gotrue-js

    An isomorphic JavaScript client library for the GoTrue API.

    Docs

    Quick start

    Install

    npm install --save @supabase/gotrue-js

    Usage

    import { GoTrueClient } from '@supabase/gotrue-js'
    
    const GOTRUE_URL = 'http://localhost:9999'
    
    const auth = new GoTrueClient({ url: GOTRUE_URL })

    Custom fetch implementation

    gotrue-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 { GoTrueClient } from '@supabase/gotrue-js'
    
    const GOTRUE_URL = 'http://localhost:9999'
    
    const auth = new GoTrueClient({ url: GOTRUE_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

    Install

    npm i @supabase/gotrue-js

    DownloadsWeekly Downloads

    42,891

    Version

    1.22.15

    License

    MIT

    Unpacked Size

    397 kB

    Total Files

    93

    Last publish

    Collaborators

    • inian
    • kiwicopple
    • ange1ico
    • awalias
    • phamhieu1998