icns-frontend/pages/client/twitter.ts
2022-11-30 18:58:19 +09:00

9 lines
292 B
TypeScript

import { auth } from "twitter-api-sdk";
export const authClient = new auth.OAuth2User({
client_id: process.env.CLIENT_ID as string,
client_secret: process.env.CLIENT_SECRET as string,
callback: "http://localhost:3000/api/auth/callback",
scopes: ["users.read", "offline.access"],
});