verify user with the localapi?

default discord avatar
last month

Is it possible to verify a user with the localapi?

i know

const result = await payload.verify({
  collection: "users", // required
  token: "afh3o2jf2p3f...", // the token saved on the user as `_verificationToken`

but how can i access the _verificationToken?

ah got it, showHiddenFields: true was missing

    Open the post
    Continue the discussion in Discord
    Like what we're doing?
    Star us on GitHub!


    Connect with the Payload Community on Discord



    Can't find what you're looking for?

    Get help straight from the Payload team with an Enterprise License.