Skip to content

Commit

Permalink
Enable multi tenancy for email link sign in (#7246)
Browse files Browse the repository at this point in the history
  • Loading branch information
renkelvin authored Jan 5, 2021
1 parent e09c321 commit f9e5be1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions FirebaseAuth/Sources/Backend/RPC/FIREmailLinkSignInRequest.m
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@
*/
static NSString *const kPostBodyKey = @"postBody";

/** @var kTenantIDKey
@brief The key for the tenant id value in the request.
*/
static NSString *const kTenantIDKey = @"tenantId";

@implementation FIREmailLinkSignInRequest

- (instancetype)initWithEmail:(NSString *)email
Expand All @@ -66,6 +71,9 @@ - (nullable id)unencodedHTTPRequestBodyWithError:(NSError *_Nullable *_Nullable)
if (_IDToken) {
postBody[kIDTokenKey] = _IDToken;
}
if (self.tenantID) {
postBody[kTenantIDKey] = self.tenantID;
}
return [postBody copy];
}

Expand Down

0 comments on commit f9e5be1

Please sign in to comment.