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

# Connect Reddit with OAuth 2.0 Password Grant (Script App) – StackOne Hub

> Link a Reddit account in the StackOne Hub using OAuth 2.0 Password Grant (Script App). End-user guide to authorize the integration and start using Reddit actions.

<Warning>Script apps can only authenticate as accounts listed as a developer of the app. If 2FA is enabled, append :OTP to the password (e.g. `mypassword:123456`).</Warning>

<section data-guide-section data-guide-scopes="">
  <h2>Create a script app</h2>

  <p>Register a script-type app in Reddit's app preferences.</p>

  <Steps>
    <Step title="Open the apps page">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Navigate to <a href="https://www.reddit.com/prefs/apps" target="_blank" rel="noopener noreferrer">[https://www.reddit.com/prefs/apps](https://www.reddit.com/prefs/apps)</a> while signed in.</p>

        <ul>
          <li>Scroll to the bottom of the page and click <strong>are you a developer? create an app...</strong></li>
          <li>Enter an <strong>app name</strong> (e.g., `StackOne Script`).</li>
          <li>Select the <strong>script</strong> radio button.</li>
          <li>Enter a redirect URI (any valid URL — script apps do not use it). e.g. `http://localhost`</li>
          <li>Click <strong>create app</strong>.</li>
        </ul>
      </div>
    </Step>

    <Step title="Copy credentials">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>After creation the new app card shows the credentials you need.</p>

        <ul>
          <li>The string under the app name (just below "personal use script") is the <strong>Client ID</strong>.</li>
          <li>Click <strong>edit</strong> to reveal the <strong>secret</strong>.</li>
          <li>Make sure your Reddit account is listed as a developer of the app (the creator is automatically listed).</li>
        </ul>
      </div>
    </Step>
  </Steps>
</section>

<div data-whitelabel-hide>
  <h2>Linking the Account from the Hub</h2>

  <Steps>
    <Step title="Navigate to the Hub">
      Use one of the three <a href="/guides/accounts-section#linking-accounts">Linking Account Methods</a> to access the Hub.
    </Step>

    <Step title="Fill out the fields">
      Fill out the following fields using details from your provider:

      <ul>
        <li><strong>Reddit Username</strong></li>
        <li><strong>Reddit Password</strong></li>
        <li><strong>User Agent</strong></li>
      </ul>
    </Step>

    <Step title="Connect">
      <ul>
        <li>Click <strong>Connect</strong></li>
        <li>If applicable, the provider will redirect you to a sign-in or authorization page. Complete the provider's authorization flow.</li>
        <li>Once authorization is successful, you will see a confirmation popup</li>
      </ul>
    </Step>
  </Steps>

  <p>If the account linking is successful, you will see the newly linked account in your <a href="/guides/accounts-section">Accounts</a> page.</p>
</div>
