关于我在.net core6时JWT 出现错误:IDX10653

 

 

IDX10653: The encryption algorithm 'System. String' requires a key size of at least 'System. Int32' bits. Key 'Microsoft.IdentityModel.Tokens. SymmetricSecurityKey', is of size: 'System.Int32'. (Parameter 'key')

就是配置的密钥太短了,得长一点,能多长就长

posted on 2022-08-26 15:45  就叫小顺吧  阅读(412)  评论(0编辑  收藏  举报