Commit 44a7a68
committed
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.1 parent 14c9c80 commit 44a7a68
2 files changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
| |||
0 commit comments