Skip to content

Commit

Permalink
Fixed customeParameters in builder and updated doc for multi-tenant
Browse files Browse the repository at this point in the history
  • Loading branch information
lpfrenette authored Nov 7, 2023
1 parent 24c9bcf commit be0fb66
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions docs/auth/social-auth.md
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,7 @@ const onMicrosoftButtonPress = async () => {
// Optionally add custom parameters
provider.setCustomParameters({
prompt: 'consent',
tenant" 'tenant_name_or_id', //i.e. example.com or 9aaa9999-9999-999a-a9aa-9999aa9aa99a
});
// Sign-in the user with the provider
Expand Down
4 changes: 2 additions & 2 deletions packages/auth/ios/RNFBAuth/RNFBAuthModule.m
Original file line number Diff line number Diff line change
Expand Up @@ -592,8 +592,8 @@ - (void)invalidate {
[builder setScopes:provider[@"scopes"]];
}
// Add custom parameters if present
if (provider[@"parameters"]) {
[builder setCustomParameters:provider[@"parameters"]];
if (provider[@"customParameters"]) {
[builder setCustomParameters:provider[@"customParameters"]];
}

[builder getCredentialWithUIDelegate:nil
Expand Down

0 comments on commit be0fb66

Please sign in to comment.