()
| 151 | } |
| 152 | |
| 153 | func cacheFile() string { |
| 154 | cacheDir, err := os.UserCacheDir() |
| 155 | if err != nil { |
| 156 | return "" |
| 157 | } |
| 158 | return filepath.Join(cacheDir, "ttn-lw-cli", "cache") |
| 159 | } |
| 160 | |
| 161 | // GetAuthCache gets the auth cache form the cache file. |
| 162 | func GetAuthCache() (cache AuthCache, err error) { |
no test coverage detected