-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
secretOrPrivateKey is not valid key material #20485
Comments
Did you set or change the |
I set it to |
@talinkb since you have shared it over here in a public space, I would highly recommend you to change that Perhaps there was a Directus upgrade? The and Directus has upgraded to that version back in If you would still like to use numbers as your Understandably a |
Describe the Bug
When trying to login to my locally hosted directus instance I get an "Unexpected Error". After checking the logs through docker, I can see that this is the message that's being returned whenever I try to login:
2023-11-20 17:53:55 [16:53:54.830] ERROR: secretOrPrivateKey is not valid key material
2023-11-20 17:53:55 err: {
2023-11-20 17:53:55 "type": "Error",
2023-11-20 17:53:55 "message": "secretOrPrivateKey is not valid key material",
2023-11-20 17:53:55 "stack":
2023-11-20 17:53:55 Error: secretOrPrivateKey is not valid key material
2023-11-20 17:53:55 at module.exports [as sign] (/directus/node_modules/.pnpm/jsonwebtoken@9.0.1/node_modules/jsonwebtoken/sign.js:115:24)
I've changed nothing to do with my directus setup, and the nuxt app thats accessing it (which is also locally hosted) Is still able to get data.
To Reproduce
I'm not sure how to reproduce it because I changed absolutely nothing about the setup and it was working perfectly until a couple of hours ago
Directus Version
10.7.1
Hosting Strategy
Self-Hosted (Docker Image)
The text was updated successfully, but these errors were encountered: