Skip to content

Commit 0f04e85

Browse files
committed
add default access to RestAuthProvider
1 parent 71a922c commit 0f04e85

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

firebase-auth-rest/core/src/main/java/com/anotherdev/firebase/auth/rest/RestAuthTokenRefresher.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ public class RestAuthTokenRefresher implements IdTokenListener, LifecycleObserve
2525
private static final long MAX_RETRY_BACKOFF = MILLISECONDS.convert(5, MINUTES);
2626

2727
private final Handler handler = new Handler();
28+
@NonNull
2829
private final RestAuthProvider auth;
2930

3031
private String ownerName;
@@ -33,10 +34,15 @@ public class RestAuthTokenRefresher implements IdTokenListener, LifecycleObserve
3334
private String lastToken;
3435

3536

36-
public RestAuthTokenRefresher(RestAuthProvider auth) {
37+
public RestAuthTokenRefresher(@NonNull RestAuthProvider auth) {
3738
this.auth = auth;
3839
}
3940

41+
@NonNull
42+
RestAuthProvider getAuth() {
43+
return auth;
44+
}
45+
4046
@Override
4147
public void onIdTokenChanged(@NonNull InternalTokenResult result) {
4248
final String newToken = result.getToken();

0 commit comments

Comments
 (0)