Skip to content

Commit 0393a69

Browse files
authored
Tidy docs
1 parent 623bee5 commit 0393a69

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

auth/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -406,13 +406,13 @@ If a user is not currently signed in, then a silent sign-in process can be start
406406
displaying any UI to provide a seamless experience. Silent sign-in uses saved Smart Lock credentials
407407
and returns a successful `Task` only if the user has been fully signed in with Firebase.
408408

409-
Here's an example of how you would use silent sign-in paired with anonymous users to get your users
410-
up and running as fast as possible:
409+
Here's an example of how you could use silent sign-in paired with Firebase anonymous sign-in to get
410+
your users up and running as fast as possible:
411411

412412
```java
413413
List<IdpConfig> providers = getSelectedProviders();
414414
AuthUI.getInstance().silentSignIn(this, providers)
415-
.continueWithTask(new Continuation<AuthResult, Task<AuthResult>>() {
415+
.continueWithTask(this, new Continuation<AuthResult, Task<AuthResult>>() {
416416
@Override
417417
public Task<AuthResult> then(@NonNull Task<AuthResult> task) {
418418
if (task.isSuccessful()) {
@@ -422,7 +422,7 @@ AuthUI.getInstance().silentSignIn(this, providers)
422422
return FirebaseAuth.getInstance().signInAnonymously();
423423
}
424424
}
425-
}).addOnCompleteListener(new OnCompleteListener<AuthResult>() {
425+
}).addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {
426426
@Override
427427
public void onComplete(@NonNull Task<AuthResult> task) {
428428
if (task.isSuccessful()) {

0 commit comments

Comments
 (0)