Skip to content

Commit 859a6b0

Browse files
committed
readme: how to enable auto-upgrade of anonymous users
1 parent 16db4f9 commit 859a6b0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Auth/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,11 @@ Refer to the Objective-C and Swift samples for examples of how you can customize
361361
these views.
362362

363363
## Handling auto-upgrade of anonymous users
364+
By default, the auto-upgrade of anonymous users is disabled. You can enable it
365+
by simply changing the associated attribute of your Firebase Auth instance:
366+
```swift
367+
authUI?.shouldAutoUpgradeAnonymousUsers = true
368+
```
364369

365370
Enabling auto-upgrade of anonymous users increases the complexity of your auth
366371
flow by adding several more edge cases that need to be handled. As opposed to

0 commit comments

Comments
 (0)