Skip to main content

Built and signed on GitHub Actions

An isomorphic Javascript client for Supabase. Query your Supabase database, subscribe to realtime events, upload and download files, browse typescript examples, invoke postgres functions via rpc, invoke supabase edge functions, query pgvector.

This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
94%
Published
2 days ago (2.50.2)
property SupabaseClientOptions.auth

Properties

optional
autoRefreshToken: boolean

Automatically refreshes the token for logged-in users. Defaults to true.

optional
storageKey: string

Optional key name used for storing tokens in local storage.

optional
persistSession: boolean

Whether to persist a logged-in session to storage. Defaults to true.

optional
detectSessionInUrl: boolean

Detect a session from the URL. Used for OAuth login callbacks. Defaults to true.

optional
storage: SupabaseAuthClientOptions["storage"]

A storage provider. Used to store the logged-in session.

optional
flowType: SupabaseAuthClientOptions["flowType"]

OAuth flow to use - defaults to implicit flow. PKCE is recommended for mobile and server-side applications.

optional
debug: SupabaseAuthClientOptions["debug"]

If debug messages for authentication client are emitted. Can be used to inspect the behavior of the library.

optional
lock: SupabaseAuthClientOptions["lock"]

Provide your own locking mechanism based on the environment. By default no locking is done at this time.

Add Package

deno add jsr:@supabase/supabase-js

Import symbol

import { type SupabaseClientOptions } from "@supabase/supabase-js";
or

Import directly with a jsr specifier

import { type SupabaseClientOptions } from "jsr:@supabase/supabase-js";

Add Package

pnpm i jsr:@supabase/supabase-js
or (using pnpm 10.8 or older)
pnpm dlx jsr add @supabase/supabase-js

Import symbol

import { type SupabaseClientOptions } from "@supabase/supabase-js";

Add Package

yarn add jsr:@supabase/supabase-js
or (using Yarn 4.8 or older)
yarn dlx jsr add @supabase/supabase-js

Import symbol

import { type SupabaseClientOptions } from "@supabase/supabase-js";

Add Package

vlt install jsr:@supabase/supabase-js

Import symbol

import { type SupabaseClientOptions } from "@supabase/supabase-js";

Add Package

npx jsr add @supabase/supabase-js

Import symbol

import { type SupabaseClientOptions } from "@supabase/supabase-js";

Add Package

bunx jsr add @supabase/supabase-js

Import symbol

import { type SupabaseClientOptions } from "@supabase/supabase-js";