Extends
Members
Methods
# getActiveID(userID) → {string}
        Gets the UUID of the active passcode.
    
    
    Parameters:
| Name | Type | Description | 
|---|---|---|
| userID | string | The UUID of the user. | 
string
    # getEmailID(userID) → {string}
        Gets the UUID of the email address.
    
    
    Parameters:
| Name | Type | Description | 
|---|---|---|
| userID | string | The UUID of the user. | 
string
    # getResendAfter(userID) → {number}
        Gets the number of seconds until when the next passcode can be sent.
    
    
    Parameters:
| Name | Type | Description | 
|---|---|---|
| userID | string | The UUID of the user. | 
number
    # getTTL(userID) → {number}
        Gets the TTL in seconds. When the seconds expire, the code is invalid.
    
    
    Parameters:
| Name | Type | Description | 
|---|---|---|
| userID | string | The UUID of the user. | 
number
    # getUserState(userID) → {LocalStorageUser}
        Gets the state of the specified user.
    
    
    Parameters:
| Name | Type | Description | 
|---|---|---|
| userID | string | The UUID of the user. | 
# reset(userID) → {PasscodeState}
        Removes the active passcode.
    
    
    Parameters:
| Name | Type | Description | 
|---|---|---|
| userID | string | The UUID of the user. | 
# setActiveID(userID, passcodeID) → {PasscodeState}
        Sets the UUID of the active passcode.
    
    
    Parameters:
| Name | Type | Description | 
|---|---|---|
| userID | string | The UUID of the user. | 
| passcodeID | string | The UUID of the passcode to be set as active. | 
# setEmailID(userID, emailID) → {PasscodeState}
        Sets the UUID of the email address.
    
    
    Parameters:
| Name | Type | Description | 
|---|---|---|
| userID | string | The UUID of the user. | 
| emailID | string | The UUID of the email address. | 
# setResendAfter(userID, seconds) → {PasscodeState}
        Sets the number of seconds until a new passcode can be sent.
    
    
    Parameters:
| Name | Type | Description | 
|---|---|---|
| userID | string | The UUID of the user. | 
| seconds | string | Number of seconds the passcode is valid for. | 
# setTTL(userID, seconds) → {PasscodeState}
        Sets the passcode's TTL and stores it to the local storage.
    
    
    Parameters:
| Name | Type | Description | 
|---|---|---|
| userID | string | The UUID of the user. | 
| seconds | string | Number of seconds the passcode is valid for. |