Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
281
func
SetToken(c *gin.Context, token string) {
282
c.Set(keyToken, token)
283
}
284
285
func
IsAuthenticated(c *gin.Context) bool {
286
_, exists := c.Get(keySession)
Callers
1
tokenAuth
Function · 0.85
Calls
1
Set
Method · 0.45
Tested by
no test coverage detected