Skip to content

Commit

Permalink
fix(auth, ios): Initialise static dictionary for custom auth domains (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
paulw11 committed Jan 24, 2024
1 parent ed8c7c5 commit 1262f3c
Showing 1 changed file with 8 additions and 0 deletions.
Expand Up @@ -53,6 +53,14 @@ + (instancetype)sharedInstance {

static NSMutableDictionary<NSString *, NSString *> *customAuthDomains;

// Initialize static properties

+ (void)initialize {
if (self == [FLTFirebaseCorePlugin self]) {
customAuthDomains = [[NSMutableDictionary alloc] init];
}
}

+ (NSString *)getCustomDomain:(NSString *)appName {
return customAuthDomains[appName];
}
Expand Down

0 comments on commit 1262f3c

Please sign in to comment.