Skip to content
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
8 changes: 8 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,14 @@ jobs:
- name: Start Supabase
run: supabase start

- name: Create storage bucket for tests
run: |
SERVICE_ROLE_KEY="$(supabase status --output json | jq -r '.SERVICE_ROLE_KEY')"
curl -X POST 'http://127.0.0.1:54321/storage/v1/bucket' \
-H "Authorization: Bearer $SERVICE_ROLE_KEY" \
-H 'Content-Type: application/json' \
-d '{"id": "test-bucket", "name": "test-bucket", "public": true}'

- name: Install dependencies and run tests
run: |
cd test/integration/bun
Expand Down
89 changes: 57 additions & 32 deletions package-lock.json

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

1 change: 1 addition & 0 deletions src/SupabaseClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,7 @@ export default class SupabaseClient<
this.changedAccessToken !== token
) {
this.changedAccessToken = token
this.realtime.setAuth(token)
} else if (event === 'SIGNED_OUT') {
this.realtime.setAuth()
if (source == 'STORAGE') this.auth.signOut()
Expand Down
2 changes: 1 addition & 1 deletion supabase/.temp/cli-latest
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2.33.9
v2.40.7
1 change: 0 additions & 1 deletion test/deno/integration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,6 @@ Deno.test(
await supabase.auth.signUp({ email, password })
const config = { broadcast: { self: true }, private: true }
channel = supabase.channel(channelName, { config })
await supabase.realtime.setAuth()

const testMessage = { message: 'test' }
let receivedMessage: any
Expand Down
2 changes: 0 additions & 2 deletions test/integration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,6 @@ describe('Supabase Integration Tests', () => {

const config = { broadcast: { self: true }, private: true }
channel = supabase.channel(channelName, { config })

await supabase.realtime.setAuth()
})

afterEach(async () => {
Expand Down
Binary file added test/integration/bun/bun.lockb
Binary file not shown.
1 change: 0 additions & 1 deletion test/integration/bun/integration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ test('should subscribe to realtime channel', async () => {
const email = `bun-test-${Date.now()}@example.com`
const password = 'password123'
await supabase.auth.signUp({ email, password })
await supabase.realtime.setAuth()

const channelName = `bun-channel-${crypto.randomUUID()}`
const config = { broadcast: { self: true }, private: true }
Expand Down
Loading
Loading