You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: expose verified JWT claims as peek_verified_claims conn assign (#57)
* feat: expose verified JWT claims as peek_verified_claims conn assign
After verify_peek_auth succeeds, the full decoded claims map is now
assigned to conn.assigns[:peek_verified_claims]. This lets downstream
apps read any claim (e.g. locale) without re-verifying the token or
manually decoding the JWT payload.
Previously the claims were parsed and discarded after building
peek_account_user, forcing apps to either re-verify or base64-decode
the raw token to access additional fields.
* feat: add locale field to AccountUser, extract from user JWT claims
The app_registry_v2 JWT format nests user info under a "user" key
including a "locale" field. AccountUser now carries locale (defaults
to nil for backward compat with older tokens that omit it).
* chore: update changelog for verified claims and locale changes
Copy file name to clipboardExpand all lines: CHANGELOG.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
5
5
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
8
+
## [2026-04-27]
9
+
10
+
### Added
11
+
12
+
-`AccountUser` now includes a `locale` field (optional `String.t()`), extracted from the `"locale"` key in the JWT user claims.
13
+
-`PeekAuth` plug now assigns `peek_verified_claims` on the conn — the full verified JWT claims map — giving LiveViews and controllers direct access to raw claim data without re-parsing the token.
0 commit comments