authgear / authgear/authgear-server

Expose UserInfo as JSON in SDKs

Open
#2,075 2 comments 0 reactions 1 assignee Claimed by @louischan-oursky View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.