# `Assent.Strategy.Twitter`
[🔗](https://github.com/pow-auth/assent/blob/v0.4.0/lib/assent/strategies/twitter.ex#L1)

Twitter OAuth 1.0a strategy.

The Twitter user endpoint only returns verified email, `email_verified` will
always be `true`.

## Usage

    config = [
      consumer_key: "REPLACE_WITH_CONSUMER_KEY",
      consumer_secret: "REPLACE_WITH_CONSUMER_SECRET",
      redirect_uri: "http://localhost:4000/auth/callback"
    ]

See `Assent.Strategy.OAuth` for more.

# `authorize_url`

```elixir
@spec authorize_url(Keyword.t()) :: Assent.Strategy.OAuth.on_authorize_url()
```

Generates an OAuth 1.0a authorization URL.

# `fetch_user`

```elixir
@spec fetch_user(Keyword.t(), map()) :: {:ok, map()} | {:error, term()}
```

Fetches user data using the access token returned by the provider.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
