瀏覽代碼

feat(docs): Add a note that token context doesn't accept number or null

release-8443
Do Le Bao Nguyen 4 年之前
父節點
當前提交
d28659f730
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1
    0
      doc/tokens.md

+ 1
- 0
doc/tokens.md 查看文件

@@ -34,6 +34,7 @@ In addition to the basic claims used in authentication, the token can also provi
34 34
   - 'name' is the display name of the user
35 35
   - 'email' is the email of the user
36 36
   - 'avatar' is the URL of the avatar for the user
37
+> Note: As the moment all fields in 'user' need to be a valid string, numeric types or `null` will generate an exception.
37 38
 - 'callee' is an optional object containing display information when launching a 1-1 video call with a single other participant.  It used to display an overlay to the first user, before the second user joins.
38 39
   - 'id' is a user identifier string.  Intended for use in reporting/analytics
39 40
   - 'name' is the display name of the 'callee' user

Loading…
取消
儲存