(payload)
| 2092 | |
| 2093 | |
| 2094 | def _save_credentials(payload): |
| 2095 | enc = _encrypt_creds(payload) |
| 2096 | Path(CREDS_FILE).write_text(json.dumps(enc, indent=4, ensure_ascii=False), encoding="utf-8") |
| 2097 | if os.name != "nt": |
| 2098 | try: |
| 2099 | os.chmod(CREDS_FILE, 0o600) |
| 2100 | except Exception: |
| 2101 | pass |
| 2102 | |
| 2103 | |
| 2104 | SENSITIVE_FIELD_NEEDLES = ( |
no test coverage detected