MCPcopy Create free account
hub / github.com/devld/go-drive / SetToken

Function SetToken

server/utils.go:281–283  ·  view source on GitHub ↗
(c *gin.Context, token string)

Source from the content-addressed store, hash-verified

279}
280
281func SetToken(c *gin.Context, token string) {
282 c.Set(keyToken, token)
283}
284
285func IsAuthenticated(c *gin.Context) bool {
286 _, exists := c.Get(keySession)

Callers 1

tokenAuthFunction · 0.85

Calls 1

SetMethod · 0.45

Tested by

no test coverage detected