Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(connect): refresh HTTP credentials without reconnecting #9594

Mergedjuliusmarmingemerged 8 commits intomain fromrefs/pull/9594/headmerged by juliusmarminge View on GitHub

Showing 30 changed files with 7 additions and 13 deletions (loading 27).

x
0 of 30 viewed, 30 left
3 additions and 0 deletionsapps/mobile/src/connection/platform.tsModified
View file
@@ -118,6 +118,9 @@
return Context.make(
CloudSession,
CloudSession.of({
+ identity: Effect.sync(() =>
+ Option.fromNullishOr(appAtomRegistry.get(managedRelaySessionAtom)),
+ ),
clerkToken: Effect.gen(function* () {
const session = appAtomRegistry.get(managedRelaySessionAtom);
if (session === null) {
2 additions and 4 deletionsapps/mobile/src/connection/runtime.tsModified
View file
@@ -30,10 +30,8 @@
| typeof mobileBackgroundActivityObserverLayer
| typeof mobileBackgroundActivityReporterLayer;
​
-const providedClientConnectionLayer = Layer.merge(
- Connection.layerWithOptions({ usageLimitSources: true }),
- snapshotLoaderLayer,
-).pipe(
+const providedClientConnectionLayer = snapshotLoaderLayer.pipe(
+ Layer.provideMerge(Connection.layerWithOptions({ usageLimitSources: true })),
Layer.provideMerge(
Layer.mergeAll(
runtimeContextLayer,
2 additions and 9 deletionsapps/mobile/src/connection/storage.tsModified
View file