payload icon indicating copy to clipboard operation
payload copied to clipboard

import in auth example should reflect current package structure

Open logemann opened this issue 8 months ago • 1 comments

Documentation Issue

The auth example is mentioned throughout the docs. But the imports dont work anymore. For example here: https://github.com/payloadcms/payload/blob/05ae957cd5d5a3cd2dba709d3e437d9e47c39ff9/examples/auth/src/collections/hooks/protectRoles.ts#L1

should be changed to latest version and current import a la:

import type { FieldHook } from 'payload'

logemann avatar May 06 '25 00:05 logemann

🚀 This is included in version v3.40.0

github-actions[bot] avatar May 29 '25 19:05 github-actions[bot]

Closing as fixed in version 3.40.0 with this PR: https://github.com/payloadcms/payload/pull/12403

PatrikKozak avatar Oct 22 '25 14:10 PatrikKozak

This issue has been automatically locked. Please open a new issue if this issue persists with any additional detail.

github-actions[bot] avatar Oct 30 '25 05:10 github-actions[bot]