Skip to content

Commit

Permalink
updated loginWithOtp comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Amruth-Vamshi authored Mar 13, 2024
1 parent 67c9e41 commit bacbd70
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/api/api.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,9 @@ export class ApiService {

async loginWithOtp(loginDto: LoginDto, authHeader: null | string): Promise<SignupResponse> {
/* Execution flow
1. Verify OTP
1. Check if ALLOW_DEFAULT_OTP is set to true.
2. If true check if user number is listed in DEFAULT_OTP_USERS, if yes send sucess if OTP matches.
3. else; Verify OTP via fusion auth.
2. If invalid OTP, throw error; else continue with next steps
3. Check if user exists for the given applicationId.
3.1. If existing user, reset the password.
Expand Down

0 comments on commit bacbd70

Please sign in to comment.