-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(jwt): optimize JWT using
New()
instead of create instance …
…directly (#1983) - 重构 JWT token 生成,使用 `New()` 函数代替直接创建实例 - 优化 SetUserAuthority 中的错误处理流程,移除 else 代码块 - 移除多余的 err != nil 判断
- Loading branch information
Showing
2 changed files
with
12 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters