✅已解决 | 如何添加角色到jwt

想把用户角色添加到 jwt 中, 比如 role:[ admin, normalUser ] 请问如何实现, 谢谢

您好,可以通过给 “scope” 添加 roles 类型,返回应用下用户所属角色,示例:“scope”: “openid profile offline_access roles”