icns-frontend/client/twitter.ts
2022-11-30 23:55:17 +09:00

9 lines
296 B
TypeScript

import { auth } from "twitter-api-sdk";
export const authClient = new auth.OAuth2User({
client_id: process.env.TWITTER_CLIENT_ID ?? "",
client_secret: process.env.TWITTER_CLIENT_SECRET,
callback: process.env.TWITTER_AUTH_CALLBACK_URI ?? "",
scopes: ["users.read", "offline.access"],
});