mirror of
https://github.com/wassname/talk.git
synced 2026-07-27 11:28:12 +08:00
[CORL-476] Add badges to user from SSO token (#2470)
* fix: bug in lookup not checking object properly before accessing * fix: Recursive types not handling optional arrays * add user badges component * create user badges from sso token * update badges type * revert src/core/client/embed/index.html * remove duplicated line * add user badges component * create user badges from sso token * revert src/core/client/embed/index.html * remove duplicated line * fix types * fix tests and snaps * add user badges to user drawer * update snaps * update readme * [CORL-476] add user role from SSO token (#2475) * add role from token * use joi to validate role values Co-Authored-By: Wyatt Johnson <wyattjoh@gmail.com> * simplify sso.role validation * add test for invalid role in sso token
This commit is contained in:
@@ -1525,6 +1525,10 @@ type User {
|
||||
"""
|
||||
avatar: String
|
||||
|
||||
"""
|
||||
badges are user display badges
|
||||
"""
|
||||
badges: [String!]
|
||||
"""
|
||||
email is the current email address for the User.
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user