UNPKG

next-auth

Version:

Authentication for Next.js

28 lines (24 loc) 567 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = Medium; function Medium(options) { return { id: "medium", name: "Medium", type: "oauth", authorization: "https://medium.com/m/oauth/authorize?scope=basicProfile", token: "https://api.medium.com/v1/tokens", userinfo: "https://api.medium.com/v1/me", profile(profile) { return { id: profile.data.id, name: profile.data.name, email: null, image: profile.data.imageUrl }; }, options }; }