Skip to main content
Module

x/windmill_helpers/supabase.ts>createSupabaseClient

A repository that contains utils functions used by windmill deno scripts
function createSupabaseClient
import { createSupabaseClient } from "https://deno.land/x/windmill_helpers@v1.1.0/supabase.ts";

Creates a Supabase client with an authenticated session if possible.

Parameters

auth: Resource<"supabase">

Windmill resource representing Supabase credentials (project URL and API key).

optional
token: { access: string; refresh: string; expires_at?: number; }

Supabase access_token and refresh_token. expires_at is a UNIX timestamp in seconds.

optional
refresh = [UNSUPPORTED]

If true then the refresh_token will be used to get a new access_token without checking expirity.