> ## 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
```

레거시 process 전역 인증 모드를 설정합니다.

새 인테그레이션에서는 대신 `Sandbox`, `Session` 또는
클래스 수준 오퍼레이션에 `auth=`를 전달해야 합니다. 이 훅은
임포트 시 인증 모드를 설정하는 인테그레이션과의 호환성을 위해 유지됩니다.
