docs: fix JWT plugin copy (#5207)

This commit is contained in:
Brian Cooper
2025-10-10 10:42:32 -07:00
committed by Alex Yang
parent fb2c6af6dc
commit 2f0cb5059c

View File

@@ -66,7 +66,7 @@ export async function signJWT(
data: JSON.parse(key.privateKey),
}).catch(() => {
throw new BetterAuthError(
"Failed to decrypt private private key. Make sure the secret currently in use is the same as the one used to encrypt the private key. If you are using a different secret, either cleanup your jwks or disable private key encryption.",
"Failed to decrypt private key. Make sure the secret currently in use is the same as the one used to encrypt the private key. If you are using a different secret, either clean up your JWKS or disable private key encryption.",
);
})
: key.privateKey;