Skip to content

Auth: Un-deprecate getLatestToken and route per-request fetches through it (closes #22647, #22816)#22736

Merged
leekelleher merged 2 commits into
mainfrom
v17/feature/auth-getLatestToken-undeprecate
May 8, 2026
Merged

Auth: Un-deprecate getLatestToken and route per-request fetches through it (closes #22647, #22816)#22736
leekelleher merged 2 commits into
mainfrom
v17/feature/auth-getLatestToken-undeprecate

Auth: tightens UmbAuthContext correctness and accepts any hey-api client

fc2c4b3
Select commit
Loading
Failed to load commit list.
CodeScene Delta Analysis / CodeScene Code Health Review (main) succeeded May 6, 2026 in 50s

CodeScene PR Check

Quality Gate Passed

Gates Passed
4 Quality Gates Passed

See analysis details in CodeScene

Quality Gate Profile: Clean Code Collective
Install CodeScene MCP: safeguard and uplift AI-generated code. Catch issues early with our IDE extension and CLI tool.

Details

✅ Improving Code Health:

  • Primitive Obsession auth.context.ts

Annotations

Check notice on line 1 in src/Umbraco.Web.UI.Client/src/packages/core/auth/auth.context.ts

See this annotation in the file changed.

@codescene-delta-analysis codescene-delta-analysis / CodeScene Code Health Review (main)

✅ Getting better: Primitive Obsession

The ratio of primitive types in function arguments decreases from 68.42% to 65.00%, threshold = 30.0%. The functions in this file have too many primitive types (e.g. int, double, float) in their function argument lists. Using many primitive types lead to the code smell Primitive Obsession. Avoid adding more primitive arguments.