Skip to content

Commit

Permalink
chore(app): update mfa auth flow
Browse files Browse the repository at this point in the history
  • Loading branch information
rhahao committed Dec 1, 2024
1 parent 0287e3c commit acb1863
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ const useButtonBase = ({ provider, isEmail }) => {

const determineNextStep = ({
app_settings,
code,
message,
}: UserLoginResponseType): NextStepType => {
const nextStep: NextStepType = {};

if (code) {
if (message === 'MFA_VERIFY') {
nextStep.isVerifyMFA = true;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,13 @@ const useUserDetails = () => {
const users = data.users;

const coordinator = users.find((record) =>
record.profile.cong_role.includes('coordinator')
record.profile.cong_role?.includes('coordinator')
);
const secretary = users.find((record) =>
record.profile.cong_role.includes('secretary')
record.profile.cong_role?.includes('secretary')
);
const service = users.find((record) =>
record.profile.cong_role.includes('service_overseer')
record.profile.cong_role?.includes('service_overseer')
);

let updateResp = false;
Expand Down

0 comments on commit acb1863

Please sign in to comment.