MCPcopy Index your code
hub / github.com/larksuite/cli / removeLoginRequestedScope

Function removeLoginRequestedScope

cmd/auth/login_scope_cache.go:76–82  ·  view source on GitHub ↗

removeLoginRequestedScope deletes the cache entry for a device_code.

(deviceCode string)

Source from the content-addressed store, hash-verified

74
75// removeLoginRequestedScope deletes the cache entry for a device_code.
76func removeLoginRequestedScope(deviceCode string) error {
77 err := vfs.Remove(loginScopeCachePath(deviceCode))
78 if errors.Is(err, os.ErrNotExist) {
79 return nil
80 }
81 return err
82}
83
84// shouldRemoveLoginRequestedScope indicates whether the requested-scope cache
85// should be removed after polling finishes.

Callers 2

authLoginPollDeviceCodeFunction · 0.85

Calls 3

RemoveFunction · 0.92
loginScopeCachePathFunction · 0.85
IsMethod · 0.80

Tested by 1