All files / lib/icloud/mfa constants.ts

100% Statements 15/15
100% Branches 1/1
100% Functions 0/0
100% Lines 15/15

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 151x 1x 1x 7x 7x 7x 7x 1x 1x 1x 1x 1x 1x 1x 1x
/**
 * Event lifecycle of MFA Server class
 */
export enum EVENTS {
    MFA_RECEIVED = `mfa_rec`,
    MFA_RESEND = `mfa_resend`
}
 
/**
 * Endpoint URI of MFA Server, all expect POST requests
 */
export const ENDPOINT = {
    "CODE_INPUT": `/mfa`, // Expecting URL parameter 'code' with 6 digits
    "RESEND_CODE": `/resend_mfa`, // Expecting URL parameter 'method' (either 'device', 'sms', 'voice') and optionally 'phoneNumberId' (any number > 0)
};