Skip to content

fix(auth): remove unnecessary opaque-token debug message - #264

Merged
allanbowe merged 1 commit into
mainfrom
fix/remove-opaque-token-debug-message
Aug 19, 2026
Merged

fix(auth): remove unnecessary opaque-token debug message#264
allanbowe merged 1 commit into
mainfrom
fix/remove-opaque-token-debug-message

Conversation

@sasjs-dev

@sasjs-dev sasjs-dev Bot commented Aug 19, 2026

Copy link
Copy Markdown

Fixes the isTokenExpiring: token is not a decodable JWT, treating it as not expiring.
message that was still printed constantly in CLI output despite PR #263.

The process.logger?.debug?.() optional chain could still fall through to console.debug in contexts where no logger is wired (e.g. the CLI).

Remove the debug message entirely - opaque tokens are the norm for SAS Logon Manager, so this is routine internal diagnostic noise, not useful to end users.

This also removes the now-unused process.logger type augmentation (src/types/system/process.d.ts) and the ts-node.files:true block added by PR #263
solely to support it.

An opaque Access/Refresh token still returns false (usable / not expiring) and is
fully silent. Test added asserting no console output for opaque tokens.

The 'isTokenExpiring: token is not a decodable JWT' debug message was
still surfacing in CLI output because process.logger is not configured in
the CLI context, and the misleading optional-chain fallback can route to
console.debug regardless.

Opaque tokens are the norm for SAS Logon Manager, so this is routine
internal diagnostic noise, not useful to end users. Remove the debug call
entirely (option 1). Also remove the now-unused process.logger type
augmentation (process.d.ts) and the ts-node files:true config that PR #263
added solely to support the removed call. An opaque token still returns
false (usable) and is fully silent.

@4gl-reviewer 4gl-reviewer Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

Verdict: Approve — no changes needed.


Reviewed by Hermes Agent

@allanbowe
allanbowe merged commit 26928f5 into main Aug 19, 2026
4 checks passed
@allanbowe
allanbowe deleted the fix/remove-opaque-token-debug-message branch August 19, 2026 15:31
@sasjs-gha

sasjs-gha Bot commented Aug 19, 2026

Copy link
Copy Markdown

🎉 This PR is included in version 3.6.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@sasjs-gha sasjs-gha Bot added the released label Aug 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant