UNPKG

supakit

Version:

A Supabase auth helper for SvelteKit.

14 lines (13 loc) 559 B
import type { GoTrueClientOptions } from '@supabase/supabase-js'; import type { RequestEvent } from '@sveltejs/kit'; import type { CookieOptions } from '../types/index.js'; interface StorageAdapter extends Exclude<GoTrueClientOptions['storage'], undefined> { } export declare class CookieStorage implements StorageAdapter { private readonly event; constructor(event: Pick<RequestEvent, 'cookies'> & CookieOptions); getItem(key: string): string | null; setItem(key: string, value: string): void; removeItem(key: string): void; } export {};