Skip to content

Commit

Permalink
📝 fix wrongly ordered comments
Browse files Browse the repository at this point in the history
  • Loading branch information
p-fruck committed Jan 6, 2022
1 parent 85f9801 commit 97effaa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/backend/src/controllers/authentication/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ export async function authAttestationGetRequest(req: Request, res: Response, nex
userDoc.currentChallenge = attestationOptions.challenge;
userDoc.save();

// 4. Done
// 6. Done
const response = new ApiSuccess(200, attestationOptions);
next(response);

Expand Down Expand Up @@ -229,7 +229,7 @@ export async function authAttestationGetRequest(req: Request, res: Response, nex
throw new ApiError(400, error.message);

} finally {
// 8. Delete challenge from user. To try again, it is necessary to request a new challenge
// 9. Delete challenge from user. To try again, it is necessary to request a new challenge
userDoc.currentChallenge = undefined;
userDoc.save();
}
Expand Down

0 comments on commit 97effaa

Please sign in to comment.