loginScopeCachePath returns the cache file path for a given device_code.
(deviceCode string)
| 30 | |
| 31 | // loginScopeCachePath returns the cache file path for a given device_code. |
| 32 | func 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. |
| 37 | func sanitizeLoginScopeCacheKey(deviceCode string) string { |