Skip to content

Commit 70fb5d2

Browse files
cynthiajianga-maurice
authored andcommitted
[Auth] Set desktop persistence to early access until we get all launch approval.
PiperOrigin-RevId: 246598837
1 parent 8076e44 commit 70fb5d2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

auth/src/desktop/auth_desktop.cc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,9 +204,10 @@ void Auth::InitPlatformAuth(AuthData* const auth_data) {
204204
auth_data->app->function_registry()->RegisterFunction(
205205
internal::FnAuthStopTokenListener,
206206
Auth::StopTokenRefreshThreadForRegistry);
207-
207+
#ifdef FIREBASE_EARLY_ACCESS_PREVIEW
208208
// Load existing UserData
209209
InitializeUserDataPersist(auth_data);
210+
#endif // FIREBASE_EARLY_ACCESS_PREVIEW
210211
InitializeTokenRefresher(auth_data);
211212
}
212213

@@ -230,7 +231,9 @@ void Auth::DestroyPlatformAuth(AuthData* const auth_data) {
230231
auth_data->id_token_listeners.clear();
231232
}
232233

234+
#ifdef FIREBASE_EARLY_ACCESS_PREVIEW
233235
DestroyUserDataPersist(auth_data);
236+
#endif // FIREBASE_EARLY_ACCESS_PREVIEW
234237

235238
UserView::ClearUser(auth_data);
236239

0 commit comments

Comments
 (0)