MCPcopy
hub / github.com/larksuite/cli / loginScopeCachePath

Function loginScopeCachePath

cmd/auth/login_scope_cache.go:32–34  ·  view source on GitHub ↗

loginScopeCachePath returns the cache file path for a given device_code.

(deviceCode string)

Source from the content-addressed store, hash-verified

30
31// loginScopeCachePath returns the cache file path for a given device_code.
32func loginScopeCachePath(deviceCode string) string {
33 return filepath.Join(loginScopeCacheDir(), sanitizeLoginScopeCacheKey(deviceCode)+".json")
34}
35
36// sanitizeLoginScopeCacheKey converts a device_code into a safe filename token.
37func sanitizeLoginScopeCacheKey(deviceCode string) string {

Callers 4

saveLoginRequestedScopeFunction · 0.85
loadLoginRequestedScopeFunction · 0.85

Calls 2

loginScopeCacheDirFunction · 0.85

Tested by 1