@heybox/hb-sdk API Reference - v0.9.5
    正在准备搜索索引...

    类型别名 UserInfoAuthorizationStatus

    UserInfoAuthorizationStatus:
        | "not_required"
        | "not_requested"
        | "granted"
        | "denied"

    单个用户信息 scope 对当前小程序的授权状态。

    • not_required:Host 判定该 scope 无需单独征得用户同意。
    • not_requested:当前授权上下文尚未申请或授予该 scope。
    • granted:当前小程序可以读取该 scope 对应的资料。
    • denied:用户拒绝过该 scope,或该 scope 已被撤销。

    该状态描述用户授权,不代表 package.json#heybox.permissions 的声明或平台审批结果。 当前 Runtime 成功执行 user.getInfo() 时会静默授予 identity 与 profile,因此两项均为 granted;支持 Steam 账号能力的 Host 还会授予 steam_account。其余状态仍保留在公共协议中, 供兼容 Host 和授权状态事件使用。