-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Description
Describe the Bug
I migrated from payload version 3.32.0 to 3.65.0 and in the initial test I realized that authentication by manually creating an access token no longer works and gives a 401 error.
I have previously seen the tutorial on creating and hashing an access token for payload from this article: https://medium.com/@nirjalprajapati/custom-jwt-token-generation-in-payload-cms-a-step-by-step-guide-ccb1546fa8bf
Since payload itself does not provide us with a method for this, please advise what to do.
Link to the code that reproduces this issue
https://github.com/payloadcms/payload
Reproduction Steps
I migrated from payload version 3.32.0 to 3.65.0 and in the initial test I realized that authentication by manually creating an access token no longer works and gives a 401 error.
I have previously seen the tutorial on creating and hashing an access token for payload from this article:
Since payload itself does not provide us with a method for this, please advise what to do.
Which area(s) are affected? (Select all that apply)
area: core
Environment Info
Binaries:
Node: 22.11.0
npm: N/A
Yarn: N/A
pnpm: N/A
Relevant Packages:
payload: 3.65.0
next: 15.3.3
@payloadcms/db-mongodb: 3.65.0
@payloadcms/graphql: 3.65.0
@payloadcms/next/utilities: 3.65.0
@payloadcms/plugin-cloud-storage: 3.65.0
@payloadcms/plugin-form-builder: 3.65.0
@payloadcms/richtext-lexical: 3.65.0
@payloadcms/storage-s3: 3.65.0
@payloadcms/translations: 3.65.0
@payloadcms/ui/shared: 3.65.0
react: 19.1.0
react-dom: 19.1.0
Operating System:
Platform: win32
Arch: x64
Version: Windows 11 Enterprise
Available memory (MB): 24395
Available CPU cores: 4