Skip to content

Commit

Permalink
remove unused type (#512)
Browse files Browse the repository at this point in the history
* remove unused type

* add changeset
  • Loading branch information
david-plugge committed Apr 13, 2023
1 parent e090c2d commit 353be76
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 15 deletions.
5 changes: 5 additions & 0 deletions .changeset/eleven-radios-share.md
@@ -0,0 +1,5 @@
---
'@supabase/auth-helpers-shared': patch
---

remove unused type
1 change: 0 additions & 1 deletion packages/remix/package.json
Expand Up @@ -32,7 +32,6 @@
"@remix-run/serve": "^1.7.3",
"@supabase/supabase-js": "2.19.0",
"config": "workspace:*",
"next": "^12.2.5",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"rimraf": "^4.1.1",
Expand Down
10 changes: 8 additions & 2 deletions packages/shared/src/createClient.ts
@@ -1,6 +1,7 @@
import { createClient } from '@supabase/supabase-js';
import { AuthHelperSupabaseClientOptions } from './types';
import { SupabaseClientOptionsWithoutAuth } from './types';
import { isBrowser } from './utils';
import { StorageAdapter } from './cookieAuthStorageAdapter';

export function createSupabaseClient<
Database = any,
Expand All @@ -10,7 +11,12 @@ export function createSupabaseClient<
>(
supabaseUrl: string,
supabaseKey: string,
options: AuthHelperSupabaseClientOptions<SchemaName>
options: SupabaseClientOptionsWithoutAuth<SchemaName> & {
auth: {
storage: StorageAdapter;
storageKey?: string;
};
}
) {
const bowser = isBrowser();

Expand Down
9 changes: 0 additions & 9 deletions packages/shared/src/types.ts
@@ -1,6 +1,5 @@
import type { CookieSerializeOptions } from 'cookie';
import type { SupabaseClientOptions } from '@supabase/supabase-js';
import { StorageAdapter } from './cookieAuthStorageAdapter';

export type CookieOptions = Pick<
CookieSerializeOptions,
Expand All @@ -13,11 +12,3 @@ export type SupabaseClientOptionsWithoutAuth<SchemaName = 'public'> = Omit<
SupabaseClientOptions<SchemaName>,
'auth'
>;

export type AuthHelperSupabaseClientOptions<SchemaName = 'public'> =
SupabaseClientOptionsWithoutAuth<SchemaName> & {
auth: {
storage: StorageAdapter;
storageKey?: string;
};
};
3 changes: 0 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 353be76

Please sign in to comment.