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

> Définit l’ancien mode d’authentification global au processus.

Source : [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
```

Définit l’ancien mode d’authentification global au processus.

Les nouvelles intégrations doivent plutôt passer `auth=` à `Sandbox`, à `Session` ou
aux opérations de niveau classe. Ce hook est conservé pour assurer la compatibilité avec
les intégrations qui définissent un mode d’authentification au moment de l’importation.
