Creates a password reset token for a user, invalidating prior unused tokens.
Target user id.
Token lifetime in milliseconds.
Whether the token is for self-service forgot-password or admin reset.
The new token value and its absolute expiry time.
Creates a password reset token for a user, invalidating prior unused tokens.