Authenticate if the username and password are correct and return the WebID if it is. Throw an error if it is not.
The user's WebID.
Changes the password.
Creates a new account.
Delete the account.
Deletes the Forgot Password Confirmation Record
Creates a Forgot Password Confirmation Record. This will be to remember that a user has made a request to reset a password. Throws an error if the email doesn't exist
The record id. This should be included in the reset password link.
Helper function that converts the given e-mail to an account identifier and retrieves the account data from the internal storage.
Will error if checkExistence
is true and the account does not exist.
Generates a ResourceIdentifier to store data for the given email.
Gets the email associated with the forgot password confirmation record or undefined if it's not present
The user's email.
Generates a ResourceIdentifier to store data for the given recordId.
Gets the settings associated with this account. Errors if there is no matching account.
Updates the settings associated with this account.
Verifies the account creation. This can be used with, for example, e-mail verification.
The account can only be used after it is verified.
In case verification is not required, this should be called immediately after the create
call.
A EmailPasswordStore that uses a KeyValueStorage to persist its information and an ExpiringStorage to persist ForgotPassword records.
forgotPasswordExpiration
parameter is how long the ForgotPassword record should be stored in minutes. (defaults to 15 minutes)