Skip to content

Commit bacbd70

Browse files
updated loginWithOtp comments
1 parent 67c9e41 commit bacbd70

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/api/api.service.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,9 @@ export class ApiService {
525525

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

0 commit comments

Comments
 (0)