authgear / authgear/authgear-server
Expose UserInfo as JSON in SDKs
Open
bug/major
cooldown/enhancement
- Dominant language
- Go
- Stars
- 2k
- Forks
- 125
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 32
Description
The SDKs expose UserInfo as a strongly typed struct. But the UserInfo actually is JSON that could contain any number of standard attributes plus custom attributes. They should be exposed to the developer.
- Make UserInfo a JSON object in the SDKs
- If possible add handy accessors like `sub`, `isVerified` and `isAnonymous` to expose well-known fields
Contributor guide
Assessment
This issue has not been assessed yet.