Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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