Repository navigation
Commit cf01c18
fix(auth): derive entity_id from user_id instead of reading from Supabase JWT
Supabase JWTs don't carry custom claims. entity_id for human users is
always {user_id}-1 by convention, so derive it rather than expecting
it in the token payload.1 parent b2c9781 commit cf01c18
1 file changed
Lines changed: 9 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
70 | 73 | | |
71 | 74 | | |
72 | 75 | | |
| |||
0 commit comments