Skip to content

fix: bump auth to v2.63.0 #998

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
},
"dependencies": {
"@supabase/functions-js": "2.2.2",
"@supabase/gotrue-js": "2.62.2",
"@supabase/auth-js": "2.63.0",
"@supabase/node-fetch": "2.6.15",
"@supabase/postgrest-js": "1.9.2",
"@supabase/realtime-js": "2.9.3",
Expand Down
2 changes: 1 addition & 1 deletion src/SupabaseClient.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { FunctionsClient } from '@supabase/functions-js'
import { AuthChangeEvent } from '@supabase/gotrue-js'
import { AuthChangeEvent } from '@supabase/auth-js'
import {
PostgrestClient,
PostgrestFilterBuilder,
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import SupabaseClient from './SupabaseClient'
import type { GenericSchema, SupabaseClientOptions } from './lib/types'

export * from '@supabase/gotrue-js'
export type { User as AuthUser, Session as AuthSession } from '@supabase/gotrue-js'
export * from '@supabase/auth-js'
export type { User as AuthUser, Session as AuthSession } from '@supabase/auth-js'
export type {
PostgrestResponse,
PostgrestSingleResponse,
Expand Down
4 changes: 2 additions & 2 deletions src/lib/SupabaseAuthClient.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { GoTrueClient } from '@supabase/gotrue-js'
import { AuthClient } from '@supabase/auth-js'
import { SupabaseAuthClientOptions } from './types'

export class SupabaseAuthClient extends GoTrueClient {
export class SupabaseAuthClient extends AuthClient {
constructor(options: SupabaseAuthClientOptions) {
super(options)
}
Expand Down
6 changes: 3 additions & 3 deletions src/lib/types.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { GoTrueClient } from '@supabase/gotrue-js'
import { AuthClient } from '@supabase/auth-js'
import { RealtimeClientOptions } from '@supabase/realtime-js'
import { PostgrestError } from '@supabase/postgrest-js'

type GoTrueClientOptions = ConstructorParameters<typeof GoTrueClient>[0]
type AuthClientOptions = ConstructorParameters<typeof AuthClient>[0]

export interface SupabaseAuthClientOptions extends GoTrueClientOptions {}
export interface SupabaseAuthClientOptions extends AuthClientOptions {}

export type Fetch = typeof fetch

Expand Down