【Go-Zero】type mismatch for field “Auth.AccessSecret”, expect “string”, actual "number"报错解决方案
大家好 我是寸铁👊
总结了一篇type mismatch for field “Auth.AccessSecret”, expect “string”, actual "number"解决方案的文章✨
还包含配置jwt
密钥的各种注意事项✨
喜欢的小伙伴可以点点关注 💝
问题背景
大家好,我是寸铁。今天在学习gozero
框架使用jwt
进行鉴权登录时,运行入口文件,报错yaml
文件配置报错bug , 下面和寸铁一起来瞧瞧这个bug
是怎么样的?
报错
运行入口文件,报错如下:
具体为:
error: config file etc/users.yaml, type mismatch for field “Auth.AccessSecret”, expect “string”, actual “number”