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.accessToken

Optional function for using a third-party authentication system with Supabase. The function should return an access token or ID token (JWT) by obtaining it from the third-party auth client library. Note that this function may be called concurrently and many times. Use memoization and locking techniques if this is not supported by the client libraries.

When set, the auth namespace of the Supabase client cannot be used. Create another client if you wish to use Supabase Auth and third-party authentications concurrently in the same application.

Type

() => Promise<string | null>

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";