UNPKG

next-auth

Version:

Authentication for Next.js

28 lines (24 loc) 686 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = Yandex; function Yandex(options) { return { id: "yandex", name: "Yandex", type: "oauth", authorization: "https://oauth.yandex.ru/authorize?scope=login:email+login:info", token: "https://oauth.yandex.ru/token", userinfo: "https://login.yandex.ru/info?format=json", profile(profile) { return { id: profile.id, name: profile.real_name, email: profile.default_email, image: profile.is_avatar_empty ? null : `https://avatars.yandex.net/get-yapic/${profile.default_avatar_id}/islands-200` }; }, options }; }