> ## Documentation Index
> Fetch the complete documentation index at: https://docs.coreweave.com/llms.txt
> Use this file to discover all available pages before exploring further.

# set_auth_mode

> 従来のプロセス全体の認証モードを設定します。

ソース: [src/cwsandbox/\_auth.py:158](https://github.com/coreweave/cwsandbox-client/blob/v1.14.2/src/cwsandbox/_auth.py#L158)

```python theme={"system"}
set_auth_mode(name: str, get_auth: Callable[[], AuthHeaders]) -> None
```

従来のプロセスグローバルな認証モードを設定します。

新しいインテグレーションでは、代わりに `Sandbox`、`Session`、または
クラスレベルの操作に `auth=` を渡してください。このフックは、インポート時に認証モードを設定する
インテグレーションとの互換性を保つために残されています。
