Add user id parameter to multi-factor authentication functions

The multi-factor authentication functions have been modified to accept a user id as a parameter. This provides more flexibility as it allows a more specific targeting of users. The `useFetchAuthFactors` function has been updated to export the function rather than default, and the `useFactorsMutationKey` function has been updated to take a user id.
This commit is contained in:
giancarlo
2024-05-28 21:13:36 +07:00
parent ae162f7471
commit cbf116c688
7 changed files with 46 additions and 28 deletions

View File

@@ -143,7 +143,7 @@ export function PersonalAccountSettingsContainer(
</CardHeader>
<CardContent>
<MultiFactorAuthFactorsList />
<MultiFactorAuthFactorsList userId={props.userId} />
</CardContent>
</Card>