1 Star 0 Fork 0

yangdechao719/keyauth-g7

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
exception.go 385 Bytes
一键复制 编辑 原始数据 按行查看 历史
root_719 提交于 2025-08-30 00:39 +08:00 . 完成Token接口
package utils
import "github.com/infraboard/mcube/exception"
// IsAccessTokenExpiredError 判断是否是NotFoundError
func IsAccessTokenExpiredError(err error) bool {
if err == nil {
return false
}
e, ok := err.(exception.APIException)
if !ok {
return false
}
return e.ErrorCode() == exception.AccessTokenExpired && e.Namespace() == exception.GlobalNamespace.String()
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/yangdechao719/keyauth-g7.git
git@gitee.com:yangdechao719/keyauth-g7.git
yangdechao719
keyauth-g7
keyauth-g7
v0.0.8

搜索帮助