Skip to content

Commit

Permalink
Enable .com web based login on test builds (#23801)
Browse files Browse the repository at this point in the history
  • Loading branch information
crazytonyli authored Nov 18, 2024
1 parent c985060 commit eafc917
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions WordPress/Classes/System/WordPressAppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,11 @@ extension WordPressAppDelegate {
/// Updates the remote feature flags using an authenticated remote if a token is provided or an account exists
/// Otherwise an anonymous remote will be used
func updateFeatureFlags(authToken: String? = nil, completion: (() -> Void)? = nil) {
// Enable certain feature flags on test builds.
if BuildConfiguration.current ~= [.a8cPrereleaseTesting, .a8cBranchTest, .localDeveloper] {
FeatureFlagOverrideStore().override(RemoteFeatureFlag.dotComWebLogin, withValue: true)
}

var api: WordPressComRestApi
if let authToken {
api = WordPressComRestApi.defaultV2Api(authToken: authToken)
Expand Down

0 comments on commit eafc917

Please sign in to comment.