SetBaseDir updates the default directory used for auth JSON persistence when no explicit path is provided.
(dir string)
| 67 | |
| 68 | // SetBaseDir updates the default directory used for auth JSON persistence when no explicit path is provided. |
| 69 | func (s *FileTokenStore) SetBaseDir(dir string) { |
| 70 | s.dirLock.Lock() |
| 71 | s.baseDir = strings.TrimSpace(dir) |
| 72 | s.dirLock.Unlock() |
| 73 | } |
| 74 | |
| 75 | // Save persists token storage and metadata to the resolved auth file path. |
| 76 | func (s *FileTokenStore) Save(ctx context.Context, auth *cliproxyauth.Auth) (string, error) { |
no outgoing calls