removeLoginRequestedScope deletes the cache entry for a device_code.
(deviceCode string)
| 74 | |
| 75 | // removeLoginRequestedScope deletes the cache entry for a device_code. |
| 76 | func 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. |