createPasswordResetToken()

Overview

public struct function createPasswordResetToken(
      required string userId
)

Creates a password reset token. Registers the token in the database and returns a struct with detailed information about the token.

Arguments

NameTypeRequiredDescription
userIdstringYesID of the user to create the token for