Skip to content

Commit f9e5be1

Browse files
authored
Enable multi tenancy for email link sign in (#7246)
1 parent e09c321 commit f9e5be1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

FirebaseAuth/Sources/Backend/RPC/FIREmailLinkSignInRequest.m

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@
4343
*/
4444
static NSString *const kPostBodyKey = @"postBody";
4545

46+
/** @var kTenantIDKey
47+
@brief The key for the tenant id value in the request.
48+
*/
49+
static NSString *const kTenantIDKey = @"tenantId";
50+
4651
@implementation FIREmailLinkSignInRequest
4752

4853
- (instancetype)initWithEmail:(NSString *)email
@@ -66,6 +71,9 @@ - (nullable id)unencodedHTTPRequestBodyWithError:(NSError *_Nullable *_Nullable)
6671
if (_IDToken) {
6772
postBody[kIDTokenKey] = _IDToken;
6873
}
74+
if (self.tenantID) {
75+
postBody[kTenantIDKey] = self.tenantID;
76+
}
6977
return [postBody copy];
7078
}
7179

0 commit comments

Comments
 (0)