File tree 2 files changed +2
-16
lines changed
2 files changed +2
-16
lines changed Original file line number Diff line number Diff line change @@ -188,11 +188,6 @@ void FirebaseCppCredentialsProvider::GetToken(
188
188
}
189
189
}
190
190
191
- void FirebaseCppCredentialsProvider::InvalidateToken () {
192
- std::lock_guard<std::recursive_mutex> lock (contents_->mutex );
193
- force_refresh_token_ = true ;
194
- }
195
-
196
191
void FirebaseCppCredentialsProvider::AddAuthStateListener () {
197
192
App& app = contents_->app ;
198
193
auto callback = reinterpret_cast <void *>(OnAuthStateChanged);
@@ -234,8 +229,8 @@ void FirebaseCppCredentialsProvider::RequestToken(
234
229
// can fail if there is a token change while the request is outstanding.
235
230
int expected_generation = contents_->token_generation ;
236
231
237
- bool force_refresh = force_refresh_token_ ;
238
- force_refresh_token_ = false ;
232
+ bool force_refresh = force_refresh_ ;
233
+ force_refresh_ = false ;
239
234
auto future = GetAuthTokenAsync (contents_->app , force_refresh);
240
235
241
236
std::weak_ptr<Contents> weak_contents (contents_);
Original file line number Diff line number Diff line change @@ -59,7 +59,6 @@ class FirebaseCppCredentialsProvider
59
59
void GetToken (
60
60
firestore::credentials::TokenListener<firestore::credentials::AuthToken>
61
61
listener) override ;
62
- void InvalidateToken () override ;
63
62
64
63
private:
65
64
void AddAuthStateListener ();
@@ -109,14 +108,6 @@ class FirebaseCppCredentialsProvider
109
108
int token_generation = 0 ;
110
109
};
111
110
std::shared_ptr<Contents> contents_;
112
-
113
- // Affects the next `GetToken` request; if `true`, the token will be refreshed
114
- // even if it hasn't expired yet.
115
- bool force_refresh_token_ = false ;
116
-
117
- // Provided by the user code; may be an empty function.
118
- firestore::credentials::CredentialChangeListener<firestore::credentials::User>
119
- change_listener_;
120
111
};
121
112
122
113
} // namespace firestore
You can’t perform that action at this time.
0 commit comments