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
Name | Type | Required | Description |
---|---|---|---|
userId | string | Yes | ID of the user to create the token for |