Description
Cannot SSO login:
secretOrPrivateKey must have a value (node_modules/jsonwebtoken/sign.js)
at SSOUtils.createJWT (cryptpad/plugins/sso/sso-utils.js)
Relate cryptpad/sso#11 but in my mind, the issue is in this project.
Root cause
This is because the Env.bearerSecret is empty https://github.com/cryptpad/cryptpad/blob/main/lib/env.js#L252, at init time, a secret is generated then save into decrees https://github.com/cryptpad/cryptpad/blob/main/lib/api.js#L98 (in file ./data/decrees/decree.ndjson) but not in Env.bearerSecret variable itself!
Steps to reproduce
Run cryptpad with sso plugin
Relevant logs
Expected behavior
After restart the container it works fine, I can login fine.
Which operating system are you using?
No response
What browsers are you seeing the problem on?
No response
Extensions
sso
Version
2026.2.2
Description
Cannot SSO login:
Relate cryptpad/sso#11 but in my mind, the issue is in this project.
Root cause
This is because the Env.bearerSecret is empty https://github.com/cryptpad/cryptpad/blob/main/lib/env.js#L252, at init time, a secret is generated then save into decrees https://github.com/cryptpad/cryptpad/blob/main/lib/api.js#L98 (in file ./data/decrees/decree.ndjson) but not in Env.bearerSecret variable itself!
Steps to reproduce
Run cryptpad with sso plugin
Relevant logs
Expected behavior
After restart the container it works fine, I can login fine.
Which operating system are you using?
No response
What browsers are you seeing the problem on?
No response
Extensions
sso
Version
2026.2.2