method

find_by_token_for

find_by_token_for(purpose, token)
public

Finds a record using a given token for a predefined purpose. Returns nil if the token is invalid or the record was not found.