Skip to main content
Module

x/twi/auth.ts>OAuth2UserOptions

Twitter API v2 Client for Deno
Go to Latest
interface OAuth2UserOptions
import { type OAuth2UserOptions } from "https://deno.land/x/twi@1.2.0/auth.ts";

Properties

client_id: string

Can be found in the developer portal under the header "Client ID".

optional
client_secret: string

If you have selected an App type that is a confidential client you will be provided with a “Client Secret” under “Client ID” in your App’s keys and tokens section.

callback: string

Your callback URL. This value must correspond to one of the Callback URLs defined in your App’s settings. For OAuth 2.0, you will need to have exact match validation for your callback URL.

scopes: OAuth2Scopes[]

Scopes allow you to set granular access for your App so that your App only has the permissions that it needs. To learn more about what scopes map to what endpoints, view our authentication mapping guide.

optional
request_options: Partial<RequestOptions>

Overwrite request options for all endpoints

optional
token: Token

Set the auth token