next-auth
Version: 
Authentication for Next.js
28 lines (24 loc) • 575 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = Strava;
function Strava(options) {
  return {
    id: "strava",
    name: "Strava",
    type: "oauth",
    authorization: "https://www.strava.com/api/v3/oauth/authorize?scope=read",
    token: "https://www.strava.com/api/v3/oauth/token",
    userinfo: "https://www.strava.com/api/v3/athlete",
    profile(profile) {
      return {
        id: profile.id,
        name: profile.firstname,
        email: null,
        image: profile.profile
      };
    },
    options
  };
}