MCPcopy Create free account
hub / github.com/GoSimplicity/LinkMe / invalidateSession

Method invalidateSession

utils/jwt/jwt.go:245–247  ·  view source on GitHub ↗
(ctx *gin.Context, ssid string)

Source from the content-addressed store, hash-verified

243}
244
245func (h *handler) invalidateSession(ctx *gin.Context, ssid string) error {
246 return h.client.Set(ctx, fmt.Sprintf("linkme:user:ssid:%s", ssid), "invalid", h.rcExpiration).Err()
247}
248
249// VerifyRefreshToken 验证refresh token
250func (h *handler) VerifyRefreshToken(ctx *gin.Context, token string) (bool, *RefreshClaims, error) {

Callers 1

ClearTokenMethod · 0.95

Calls 1

SetMethod · 0.65

Tested by

no test coverage detected