Skip to content

Commit 54ae4af

Browse files
committed
pass custom access token as params
1 parent 4205d8d commit 54ae4af

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

packages/realtime_client/lib/src/realtime_client.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ class RealtimeClient {
132132
this.longpollerTimeout = 20000,
133133
RealtimeLogLevel? logLevel,
134134
this.httpClient,
135+
this.customAccessToken,
135136
}) : endPoint = Uri.parse('$endPoint/${Transports.websocket}')
136137
.replace(
137138
queryParameters:

packages/supabase/lib/src/supabase_client.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,7 @@ class SupabaseClient {
332332
logLevel: options.logLevel,
333333
httpClient: _authHttpClient,
334334
timeout: options.timeout ?? RealtimeConstants.defaultTimeout,
335+
customAccessToken: accessToken,
335336
);
336337
}
337338

0 commit comments

Comments
 (0)