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

Function IsAuthenticated

server/utils.go:285–288  ·  view source on GitHub ↗
(c *gin.Context)

Source from the content-addressed store, hash-verified

283}
284
285func IsAuthenticated(c *gin.Context) bool {
286 _, exists := c.Get(keySession)
287 return exists
288}
289
290func SetMessageSource(c *gin.Context, messageSource i18n.MessageSource) {
291 c.Set(keyMessageSource, messageSource)

Callers 2

tokenAuthFunction · 0.85
BasicAuthFunction · 0.85

Calls 1

GetMethod · 0.65

Tested by

no test coverage detected