Socket
Socket
Sign inDemoInstall

@supabase/gotrue-js

Package Overview
Dependencies
4
Maintainers
9
Versions
269
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @supabase/gotrue-js

Official client library for Supabase Auth


Version published
Weekly downloads
140K
decreased by-20.35%
Maintainers
9
Install size
1.20 MB
Created
Weekly downloads
 

Changelog

Source

2.63.0 (2024-03-26)

Features

  • add method for anonymous sign-in (#858) (e8a1fc9)
  • add support for error codes (#855) (99821f4)
  • explicit cache: no-store in fetch (#847) (034bee0)
  • warn use of getSession() when isServer on storage (#846) (9ea94fe)

Bug Fixes

Readme

Source

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

New Sponsor

Watch this repo

Keywords

FAQs

Last updated on 19 Jan 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc