From 0baf24c29f1d25deb5aaef48b8f58976c5ec9d9f Mon Sep 17 00:00:00 2001 From: joel Date: Wed, 11 Sep 2024 17:09:33 +0300 Subject: [PATCH] fix: run prettier --- src/createBrowserClient.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/createBrowserClient.ts b/src/createBrowserClient.ts index bbe29cf..536efd0 100644 --- a/src/createBrowserClient.ts +++ b/src/createBrowserClient.ts @@ -41,7 +41,7 @@ export function createBrowserClient< : string & keyof Database, Schema extends GenericSchema = Database[SchemaName] extends GenericSchema ? Database[SchemaName] - : any + : any, >( supabaseUrl: string, supabaseKey: string, @@ -50,7 +50,7 @@ export function createBrowserClient< cookieOptions?: CookieOptionsWithName; cookieEncoding?: "raw" | "base64url"; isSingleton?: boolean; - } + }, ): SupabaseClient; /** @@ -65,7 +65,7 @@ export function createBrowserClient< : string & keyof Database, Schema extends GenericSchema = Database[SchemaName] extends GenericSchema ? Database[SchemaName] - : any + : any, >( supabaseUrl: string, supabaseKey: string, @@ -74,7 +74,7 @@ export function createBrowserClient< cookieOptions?: CookieOptionsWithName; cookieEncoding?: "raw" | "base64url"; isSingleton?: boolean; - } + }, ): SupabaseClient; export function createBrowserClient< @@ -84,7 +84,7 @@ export function createBrowserClient< : string & keyof Database, Schema extends GenericSchema = Database[SchemaName] extends GenericSchema ? Database[SchemaName] - : any + : any, >( supabaseUrl: string, supabaseKey: string, @@ -93,7 +93,7 @@ export function createBrowserClient< cookieOptions?: CookieOptionsWithName; cookieEncoding?: "raw" | "base64url"; isSingleton?: boolean; - } + }, ): SupabaseClient { // singleton client is created only if isSingleton is set to true, or if isSingleton is not defined and we detect a browser const shouldUseSingleton = @@ -106,7 +106,7 @@ export function createBrowserClient< if (!supabaseUrl || !supabaseKey) { throw new Error( - `@supabase/ssr: Your project's URL and API key are required to create a Supabase client!\n\nCheck your Supabase project's API settings to find these values\n\nhttps://supabase.com/dashboard/project/_/settings/api` + `@supabase/ssr: Your project's URL and API key are required to create a Supabase client!\n\nCheck your Supabase project's API settings to find these values\n\nhttps://supabase.com/dashboard/project/_/settings/api`, ); } @@ -115,7 +115,7 @@ export function createBrowserClient< ...options, cookieEncoding: options?.cookieEncoding ?? "base64url", }, - false + false, ); const storageKey = options?.auth?.storageKey || options?.cookieOptions?.name; @@ -141,7 +141,7 @@ export function createBrowserClient< persistSession: true, storage, }, - } + }, ); if (shouldUseSingleton) {