Skip to content

refactor(auth): drop vestigial Cognito token shape (P4.9) - #66

Merged
franciszver merged 1 commit into
mainfrom
chore/p4-decognito-auth
Jul 24, 2026
Merged

refactor(auth): drop vestigial Cognito token shape (P4.9)#66
franciszver merged 1 commit into
mainfrom
chore/p4-decognito-auth

Conversation

@franciszver

Copy link
Copy Markdown
Owner

Closes #62

Removes AWS-Cognito-shaped naming left over from the pre-Render era (no real AWS remains — no aws-amplify dependency). Behavior-preserving rename of a self-contained session shape used only between two files.

  • fetchAuthSession() now returns { groups: string[] } (was { tokens: { accessToken: { payload: { 'cognito:groups': [...] } } } }).
  • authSlice reads session.groups?.includes('admin'); admin detection identical.
  • Comments neutralized; zero cognito references remain in src/.

Admin-detection assertions in demoAuthClient.test.ts exercise the new shape. npm test 541 green, npm run build clean.

Assisted-by: Claude Code (Fable orchestrator + Sonnet implementer)

…ssion groups (#62)

Assisted-by: Claude Code (Sonnet)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@franciszver
franciszver merged commit b88f2a6 into main Jul 24, 2026
2 checks passed
@franciszver
franciszver deleted the chore/p4-decognito-auth branch July 24, 2026 22:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

P4.9: Remove vestigial Cognito/AWS token-shape naming from auth

1 participant