Skip to content

Commit 6cfed0c

Browse files
authored
fix: bump auth to v2.63.0 (#998)
* fix: bump auth to v2.63.0 * chore: rename gotrue to auth
1 parent 1d13090 commit 6cfed0c

File tree

6 files changed

+18
-18
lines changed

6 files changed

+18
-18
lines changed

package-lock.json

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
},
4242
"dependencies": {
4343
"@supabase/functions-js": "2.2.2",
44-
"@supabase/gotrue-js": "2.62.2",
44+
"@supabase/auth-js": "2.63.0",
4545
"@supabase/node-fetch": "2.6.15",
4646
"@supabase/postgrest-js": "1.9.2",
4747
"@supabase/realtime-js": "2.9.3",

src/SupabaseClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { FunctionsClient } from '@supabase/functions-js'
2-
import { AuthChangeEvent } from '@supabase/gotrue-js'
2+
import { AuthChangeEvent } from '@supabase/auth-js'
33
import {
44
PostgrestClient,
55
PostgrestFilterBuilder,

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import SupabaseClient from './SupabaseClient'
22
import type { GenericSchema, SupabaseClientOptions } from './lib/types'
33

4-
export * from '@supabase/gotrue-js'
5-
export type { User as AuthUser, Session as AuthSession } from '@supabase/gotrue-js'
4+
export * from '@supabase/auth-js'
5+
export type { User as AuthUser, Session as AuthSession } from '@supabase/auth-js'
66
export type {
77
PostgrestResponse,
88
PostgrestSingleResponse,

src/lib/SupabaseAuthClient.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { GoTrueClient } from '@supabase/gotrue-js'
1+
import { AuthClient } from '@supabase/auth-js'
22
import { SupabaseAuthClientOptions } from './types'
33

4-
export class SupabaseAuthClient extends GoTrueClient {
4+
export class SupabaseAuthClient extends AuthClient {
55
constructor(options: SupabaseAuthClientOptions) {
66
super(options)
77
}

src/lib/types.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import { GoTrueClient } from '@supabase/gotrue-js'
1+
import { AuthClient } from '@supabase/auth-js'
22
import { RealtimeClientOptions } from '@supabase/realtime-js'
33
import { PostgrestError } from '@supabase/postgrest-js'
44

5-
type GoTrueClientOptions = ConstructorParameters<typeof GoTrueClient>[0]
5+
type AuthClientOptions = ConstructorParameters<typeof AuthClient>[0]
66

7-
export interface SupabaseAuthClientOptions extends GoTrueClientOptions {}
7+
export interface SupabaseAuthClientOptions extends AuthClientOptions {}
88

99
export type Fetch = typeof fetch
1010

0 commit comments

Comments
 (0)