UNPKG

next-auth

Version:

Authentication for Next.js

31 lines (27 loc) 794 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = Twitter; function Twitter(options) { return { id: "twitter", name: "Twitter", type: "oauth", version: "1.0A", scope: "", accessTokenUrl: "https://api.twitter.com/oauth/access_token", requestTokenUrl: "https://api.twitter.com/oauth/request_token", authorizationUrl: "https://api.twitter.com/oauth/authenticate", profileUrl: "https://api.twitter.com/1.1/account/verify_credentials.json?include_email=true", profile(profile) { return { id: profile.id_str, name: profile.name, email: profile.email, image: profile.profile_image_url_https.replace(/_normal\.(jpg|png|gif)$/, ".$1") }; }, ...options }; }