add snapshot
This commit is contained in:
1 parent
0e3c14d099
commit
3d2cee1ae8
18 files changed
+521
-87
No files matched your search
@@ -58,7 +58,7 @@ func Do(ctx *fasthttp.RequestCtx) (int32, error) {
|
||||
)
|
||||
if len(appToken) == 0 {
|
||||
return 0, createError(codes.Unauthenticated)
|
||||
} else if config.GetRemote().(*conf.RemoteConfig).Secrets.VerifyAppToken {
|
||||
} else if config.GetRemote().(*conf.RemoteConfig).TokensSetting.ApplicationVerify {
|
||||
if appId, err = verifyToken.Application(string(appToken)); err != nil || appId == 0 {
|
||||
return 0, createError(codes.Unauthenticated, "invalid token")
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user