Skip to content

Commit 5f74256

Browse files
authored
fix(auth, ios): append openURL changes only once in Expo plugin (#8763)
1 parent c9ceb45 commit 5f74256

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/auth/plugin/src/ios/openUrlFix.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,10 @@ export function modifySwiftAppDelegate(contents: string): string | null {
183183
return null;
184184
}
185185
}
186+
const isAlreadyModified = contents.includes(skipOpenUrlForFirebaseAuthBlockSwift);
187+
if (isAlreadyModified) {
188+
return null;
189+
}
186190
return contents.replace(pattern, `${fullMatch[0]}${skipOpenUrlForFirebaseAuthBlockSwift}\n`);
187191
}
188192

0 commit comments

Comments
 (0)