@supabase/auth-helpers-sveltekit
Advanced tools
Comparing version 0.8.6 to 0.8.7
export declare const PKG_NAME = "@supabase/auth-helpers-sveltekit"; | ||
export declare const PKG_VERSION = "0.8.6"; | ||
export declare const PKG_VERSION = "0.8.7"; |
export const PKG_NAME = '@supabase/auth-helpers-sveltekit'; | ||
export const PKG_VERSION = '0.8.6'; | ||
export const PKG_VERSION = '0.8.7'; |
@@ -1,3 +0,3 @@ | ||
import { type CookieOptions, type SupabaseClientOptions as SupabaseClientOptionsWithoutAuth } from '@supabase/auth-helpers-shared'; | ||
import { type CookieOptions, type SupabaseClientOptionsWithoutAuth } from '@supabase/auth-helpers-shared'; | ||
import type { TypedSupabaseClient } from './types'; | ||
export declare function createClient(supabaseUrl: string, supabaseKey: string, options?: SupabaseClientOptionsWithoutAuth<App.Supabase['SchemaName']>, cookieOptions?: CookieOptions): TypedSupabaseClient; |
@@ -13,5 +13,2 @@ import { createBrowserSupabaseClient } from '@supabase/auth-helpers-shared'; | ||
} | ||
}, | ||
auth: { | ||
storageKey: cookieOptions?.name ?? 'supabase-auth-token' | ||
} | ||
@@ -18,0 +15,0 @@ }; |
@@ -1,4 +0,4 @@ | ||
export type { ExtendedEvent, Config } from './types'; | ||
export type { TypedSupabaseClient } from './types'; | ||
export { getSupabase } from './utils/getSupabase'; | ||
export { getServerSession } from './utils/getServerSession'; | ||
export { createClient } from './createClient'; |
{ | ||
"name": "@supabase/auth-helpers-sveltekit", | ||
"version": "0.8.6", | ||
"version": "0.8.7", | ||
"description": "A collection of framework specific Auth utilities for working with Supabase.", | ||
@@ -48,3 +48,3 @@ "type": "module", | ||
"dependencies": { | ||
"@supabase/auth-helpers-shared": "0.2.3" | ||
"@supabase/auth-helpers-shared": "0.2.4" | ||
}, | ||
@@ -51,0 +51,0 @@ "peerDependencies": { |
@@ -120,5 +120,5 @@ # @supabase/auth-helpers-sveltekit (BETA) | ||
### Typings | ||
### Typings with v2 from Supabase CLI | ||
In order to get the most out of TypeScript and it´s intellisense, you should import our types into the `app.d.ts` type definition file that comes with your SvelteKit project. | ||
In order to get the most out of TypeScript and it´s intellisense, you should import the generated Database types into the `app.d.ts` type definition file that comes with your SvelteKit project, where `import('./DatabaseDefinitions')` points to the generated types file outlined in [v2 docs here](https://supabase.com/docs/reference/javascript/release-notes#typescript-support) after you have logged in, linked, and generated types through the Supabase CLI. | ||
@@ -298,2 +298,3 @@ ```ts | ||
import { getSupabase } from '@supabase/auth-helpers-sveltekit'; | ||
import { AuthApiError } from '@supabase/supabase-js'; | ||
@@ -300,0 +301,0 @@ export const actions: Actions = { |
21432
377
207
+ Added@supabase/auth-helpers-shared@0.2.4(transitive)
- Removed@supabase/auth-helpers-shared@0.2.3(transitive)