# Configuration Instructions

## CRITICAL: Update Email Domain Before Deploying!

The extension needs your company's email domain to auto-fill the email field on Notion's login page.

### Step-by-Step Configuration

1. **Open notion-sso-redirect folder** if you haven't already

2. **Open `redirect.js`** in a text editor

3. **Find line 9** (at the top of the file):
   ```javascript
   const YOUR_EMAIL_DOMAIN = 'yourdomain.com'; // CHANGE THIS to your company domain (e.g., 'acme.com')
   ```

4. **Replace `'yourdomain.com'`** with your actual company domain

   **Examples:**
   - If your email is `user@sonymusic-pde.com`, use: `'sonymusic-pde.com'`
   - If your email is `user@theorchard.com`, use: `'theorchard.com'`

5. **Save the file**

### What the extension will do:

1. Detects Notion login page
2. Auto-fills email as `user@yourdomain.com`
3. Automatically clicks "Continue with SSO" button
4. Redirects to your Microsoft SSO

### Testing After Configuration

1. Install the extension in Chrome
2. Go to https://www.notion.so/login
3. Watch it automatically:
   - Fill in the email field
   - Click "Continue with SSO"
   - Take you to Microsoft login
