Skip to content

Commit 416502a

Browse files
author
Thomas Cesare-Herriau
committed
Added SPA known issue and recommended method of integration.
Change-Id: I02f4e383f07ab4a1c37417e1214caafef49f2896
1 parent c50e958 commit 416502a

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@ object.
6868

6969
The following example shows how to set up a sign-in screen with all supported providers.
7070

71+
> We recommend opening the widget in a popup window or redirecting to it, as a
72+
> [known issue with single page applications](#web-single-page-applications-are-not-fully-supported)
73+
> may lead to a rendering bug.
74+
7175
```html
7276
<!DOCTYPE html>
7377
<html>
@@ -222,7 +226,6 @@ If the callback returns `true`, then the page is automatically redirected depend
222226

223227
If the callback returns `false` or nothing, the page is not automatically redirected.
224228

225-
226229
### Example with all parameters used
227230

228231
```html
@@ -327,3 +330,10 @@ parameter.
327330
When a user has enabled the private browsing mode in Safari, the web storage is disabled. This
328331
currently results in an error being thrown upon Firebase Auth initialization. Therefore, when
329332
following the snippets above, FirebaseUI will never get initialized and no UI will be displayed.
333+
334+
### Web Single Page Applications are not fully supported
335+
336+
When re-rendering the FirebaseUI Auth widget (for instance after signing in a user, signing her out
337+
and trying to sign her in again), it will fail with an `Uncaught Error: UI Widget is already
338+
initialized on the page. Only one widget instance can be initialized per page.` error. We recommend
339+
using the widget in a popup window or redirecting to it while we work on a fix for this issue.

0 commit comments

Comments
 (0)