icns-frontend/client/twitter.ts

9 lines
296 B
TypeScript
Raw Normal View History

2022-11-30 09:58:19 +00:00
import { auth } from "twitter-api-sdk";
export const authClient = new auth.OAuth2User({
2022-11-30 13:49:09 +00:00
client_id: process.env.TWITTER_CLIENT_ID ?? "",
client_secret: process.env.TWITTER_CLIENT_SECRET,
callback: process.env.TWITTER_AUTH_CALLBACK_URI ?? "",
2022-11-30 09:58:19 +00:00
scopes: ["users.read", "offline.access"],
});