We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ec9320 commit 33f63b3Copy full SHA for 33f63b3
utils.js
@@ -38,7 +38,7 @@ type AppStateStatus = typeof AppState.currentState;
38
function waitForRedirectAsync(returnUrl: string): Promise<RedirectResult> {
39
return new Promise(function (resolve) {
40
_redirectHandler = (event: RedirectEvent) => {
41
- if (event.url && event.url.includes(returnUrl)) {
+ if (event.url && event.url.startsWith(returnUrl)) {
42
resolve({ url: event.url, type: 'success' });
43
}
44
};
@@ -91,7 +91,7 @@ async function checkResultAndReturnUrl(
91
try {
92
await handleAppStateActiveOnce();
93
const url = await Linking.getInitialURL();
94
- return url && url.includes(returnUrl) ? { url, type: 'success' } : result;
+ return url && url.startsWith(returnUrl) ? { url, type: 'success' } : result;
95
} catch {
96
return result;
97
0 commit comments