Pepguy commited on
Commit
bc48d9e
·
verified ·
1 Parent(s): 59e6cdc

Update signing.html

Browse files
Files changed (1) hide show
  1. signing.html +4 -2
signing.html CHANGED
@@ -181,7 +181,9 @@
181
  // Use redirect flow in environments where popup is unreliable
182
  console.log('Detected webview/in-app: using signInWithRedirect.');
183
  // signInWithRedirect will redirect the browser away; getRedirectResult will handle the result on return.
184
- await signInWithRedirect(auth, provider).then(async (result) => {
 
 
185
  alert("rere", result);
186
  if (result && result.user) {
187
  // Successful redirect result
@@ -196,7 +198,7 @@
196
  safeSetError('Signed in but failed to retrieve token. See console for details.');
197
  }
198
  }
199
- });
200
 
201
  // After this line the browser navigates away; no further code executes in most cases.
202
  } else {
 
181
  // Use redirect flow in environments where popup is unreliable
182
  console.log('Detected webview/in-app: using signInWithRedirect.');
183
  // signInWithRedirect will redirect the browser away; getRedirectResult will handle the result on return.
184
+ const result = await signInWithRedirect(auth, provider)
185
+
186
+
187
  alert("rere", result);
188
  if (result && result.user) {
189
  // Successful redirect result
 
198
  safeSetError('Signed in but failed to retrieve token. See console for details.');
199
  }
200
  }
201
+
202
 
203
  // After this line the browser navigates away; no further code executes in most cases.
204
  } else {