UNPKG

next-auth

Version:

Authentication for Next.js

34 lines (30 loc) 756 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = Yandex; function Yandex(options) { return { id: "yandex", name: "Yandex", type: "oauth", version: "2.0", scope: "login:email login:info", params: { grant_type: "authorization_code" }, accessTokenUrl: "https://oauth.yandex.ru/token", requestTokenUrl: "https://oauth.yandex.ru/token", authorizationUrl: "https://oauth.yandex.ru/authorize?response_type=code", profileUrl: "https://login.yandex.ru/info?format=json", profile(profile) { return { id: profile.id, name: profile.real_name, email: profile.default_email, image: null }; }, ...options }; }