# Read Discord names and avatars from flattened JWT claims \(\#216\) · dara/icarus

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

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

Visibility: public

Requested revision: 87b10f9bd7d6b375ad1e86a58c6c462e85dda7f8

Requested commit: 87b10f9bd7d6b375ad1e86a58c6c462e85dda7f8

Commit: 87b10f9bd7d6b375ad1e86a58c6c462e85dda7f8

Tree: 40c09fa2a5085e4b6383e9ee596777d596595895

Author: Dara Adedeji

Committer: GitHub

## Message

```
Read Discord names and avatars from flattened JWT claims (#216)

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/87b10f9bd7d6b375ad1e86a58c6c462e85dda7f8?format=markdown)
