We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb844a2 commit 90a6a00Copy full SHA for 90a6a00
src/providers/yandex.js
@@ -4,7 +4,7 @@ export default function Yandex(options) {
4
name: "Yandex",
5
type: "oauth",
6
version: "2.0",
7
- scope: "login:email login:info",
+ scope: "login:email login:info login:avatar",
8
params: { grant_type: "authorization_code" },
9
accessTokenUrl: "https://oauth.yandex.ru/token",
10
requestTokenUrl: "https://oauth.yandex.ru/token",
@@ -15,7 +15,7 @@ export default function Yandex(options) {
15
id: profile.id,
16
name: profile.real_name,
17
email: profile.default_email,
18
- image: null,
+ image: profile.is_avatar_empty ? null : `https://avatars.yandex.net/get-yapic/${profile.default_avatar_id}/islands-200`,
19
}
20
},
21
...options,
0 commit comments