Skip to content

Commit 3c5af19

Browse files
Add missing authorization header (#88)
1 parent 67d675a commit 3c5af19

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

Package.resolved

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

Sources/Supabase/SupabaseClient.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ public class SupabaseClient {
7878

7979
defaultHeaders = [
8080
"X-Client-Info": "supabase-swift/\(version)",
81+
"Authorization": "Bearer \(supabaseKey)",
8182
"apikey": supabaseKey,
8283
].merging(options.global.headers) { _, new in new }
8384

Tests/SupabaseTests/SupabaseClientTests.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ final class SupabaseClientTests: XCTestCase {
4444
"X-Client-Info": "supabase-swift/\(Supabase.version)",
4545
"apikey": "ANON_KEY",
4646
"header_field": "header_value",
47+
"Authorization": "Bearer ANON_KEY"
4748
]
4849
)
4950
}

0 commit comments

Comments
 (0)