UNPKG

@astro-auth/providers

Version:

The providers package of the Astro Auth library

23 lines (22 loc) 724 B
const FacebookProvider = (options) => { return { id: "facebook", name: "Facebook", type: "oauth", scope: "email", options, authorization: "https://www.facebook.com/v11.0/dialog/oauth", token: "https://graph.facebook.com/oauth/access_token", userinfo: "https://api.github.com/user", profile(profile) { return { id: profile.id.toString(), name: profile.name || profile.login, email: profile.email, image: profile.avatar_url, originalUser: Object.assign({}, profile), }; }, }; }; export default FacebookProvider;