fix(oauth): defensive JWK env parsing + clearer key gen output
- Auto-strip surrounding single/double quotes from OAUTH_PRIVATE_JWK and
OAUTH_PUBLIC_JWK before parsing, and reject values that aren't shaped
like a JSON object with a clear actionable error (length, head, tail,
fix instructions). This catches the common mistake where shell quotes
get stripped along with the leading/trailing braces during copy/paste
into hosted env UIs.
- Apply the same parser to the public JWKS route so /oauth/jwks.json
surfaces the same descriptive error.
- generate-oauth-key.ts now prints values WITHOUT shell quotes so what
the user copies is exactly what should be stored, removing the temptation
to strip quotes (and accidentally take the braces with them).
- .env.example clarifies the format and warns against extra wrapping
quotes.
Made-with: Cursor