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

# UseAuthParams Type

> Parameters type for useAuth hook

## Type definition

Below is the type definition for the `UseAuthParams` type. This is the type definition for the parameters you pass to the `useAuth` hook. The type varies depending on whether auto-registration is enabled.

### With auto-registration (autoRegister: true)

```tsx theme={"theme":{"light":"github-dark","dark":"material-theme-darker"}}
type UseAuthParams = {
  partnerId: string; // Required, replace with your actual partner ID
  partnerToken: string; // Required, replace with your actual partner token
  autoRegister?: true; // Default is true
  loginOnMount?: boolean; // Optional, set to true to sign in automatically when the component mounts
  providerId?: string; // Optional, replace with your actual provider ID
  providerName: string; // Required for auto-registration
  providerOrgId: string; // Required for auto-registration
  providerSpecialty?: string; // Required for auto-registration
};
```

### Without auto-registration (autoRegister: false)

```tsx theme={"theme":{"light":"github-dark","dark":"material-theme-darker"}}
type UseAuthParams = {
  partnerId: string; // Required, replace with your actual partner ID
  partnerToken: string; // Required, replace with your actual partner token
  autoRegister?: false; // Default is false
  loginOnMount?: boolean; // Optional, set to true to sign in automatically when the component mounts
  providerId?: string; // Optional, replace with your actual provider ID
};
```
