# Read Discord names and avatars from flattened JWT claims · dara/icarus

[View on GitCafe](https://git.cafe/dara/icarus/commit/023ede1228306dcf111743d4b9f1ffe13d5f8c70)

Repository: [dara/icarus](https://git.cafe/dara/icarus)

Visibility: public

Requested revision: 023ede1228306dcf111743d4b9f1ffe13d5f8c70

Requested commit: 023ede1228306dcf111743d4b9f1ffe13d5f8c70

Commit: 023ede1228306dcf111743d4b9f1ffe13d5f8c70

Tree: 40c09fa2a5085e4b6383e9ee596777d596595895

Author: Dara Adedeji

Committer: Dara Adedeji

## Message

```
Read Discord names and avatars from flattened JWT claims

Convex flattens nested JWT claims into dotted keys, so Supabase's
user_metadata arrives as identity["user_metadata.full_name"] and friends,
never as an object. Presence only looked for the object, found nothing,
and every Discord user fell back to their email name with no picture.
Read the dotted keys (and nested forms, in case a provider sends them),
and test the shape Convex actually produces.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

```

## Parents

- [5b0abd0b7a161fdd95f1dc27d244f980efb32436](https://git.cafe/dara/icarus/commit/5b0abd0b7a161fdd95f1dc27d244f980efb32436?format=markdown)

[Source at this commit](https://git.cafe/dara/icarus/tree/023ede1228306dcf111743d4b9f1ffe13d5f8c70?format=markdown)
