{"id":34756949,"url":"https://github.com/chipjacks/passport-mapmyfitness","last_synced_at":"2026-05-26T10:31:02.952Z","repository":{"id":22545311,"uuid":"25886247","full_name":"chipjacks/passport-mapmyfitness","owner":"chipjacks","description":"MapMyFitness authentication strategy for Passport and Node.js.","archived":false,"fork":false,"pushed_at":"2014-10-28T20:29:05.000Z","size":136,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-03-27T22:01:44.323Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://passportjs.org/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chipjacks.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-10-28T19:26:10.000Z","updated_at":"2014-10-28T19:29:37.000Z","dependencies_parsed_at":"2022-08-21T07:01:04.537Z","dependency_job_id":null,"html_url":"https://github.com/chipjacks/passport-mapmyfitness","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"purl":"pkg:github/chipjacks/passport-mapmyfitness","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chipjacks%2Fpassport-mapmyfitness","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chipjacks%2Fpassport-mapmyfitness/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chipjacks%2Fpassport-mapmyfitness/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chipjacks%2Fpassport-mapmyfitness/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chipjacks","download_url":"https://codeload.github.com/chipjacks/passport-mapmyfitness/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chipjacks%2Fpassport-mapmyfitness/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33517111,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T03:12:49.672Z","status":"ssl_error","status_checked_at":"2026-05-26T03:12:47.976Z","response_time":63,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-12-25T05:45:58.037Z","updated_at":"2026-05-26T10:31:02.947Z","avatar_url":"https://github.com/chipjacks.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Passport-MapMyFitness\n\n[Passport](http://passportjs.org/) strategy for authenticating with\n[MapMyFitness](https://mapmyfitness.com/) using the OAuth 2.0 API.\n\nThis module lets you authenticate using MapMyFitness in your Node.js\napplications.  By plugging into Passport, MapMyFitness authentication can be\neasily and unobtrusively integrated into any application or framework that\nsupports [Connect](http://www.senchalabs.org/connect/)-style middleware,\nincluding [Express](http://expressjs.com/).\n\n## Install\n\n    $ npm install passport-mapmyfitness\n\n## Usage\n\n#### Configure Strategy\n\nThe MapMyFitness authentication strategy authenticates users using a\nMapMyFitness account and OAuth 2.0 tokens.  The strategy requires a `verify`\ncallback, which accepts these credentials and calls `done` providing a user, as\nwell as `options` specifying a client ID, client secret, and callback URL.\n\n    passport.use(new MapMyFitnessStrategy({\n        clientID: MAPMYFITNESS_CLIENT_ID,\n        clientSecret: MAPMYFITNESS_CLIENT_SECRET,\n        callbackURL: \"http://127.0.0.1:3000/auth/mapmyfitness/callback\"\n      },\n      function(accessToken, refreshToken, profile, done) {\n        User.findOrCreate({ mapmyfitnessId: profile.id }, function (err, user) {\n          return done(err, user);\n        });\n      }\n    ));\n\n#### Authenticate Requests\n\nUse `passport.authenticate()`, specifying the `'mapmyfitness'` strategy, to\nauthenticate requests.\n\nFor example, as route middleware in an [Express](http://expressjs.com/)\napplication:\n\n    app.get('/auth/mapmyfitness',\n      passport.authenticate('mapmyfitness'));\n\n    app.get('/auth/mapmyfitness/callback', \n      passport.authenticate('mapmyfitness', { failureRedirect: '/login' }),\n      function(req, res) {\n        // Successful authentication, redirect home.\n        res.redirect('/');\n      });\n\n## Examples\n\nFor a complete, working example, refer to the [login example](https://github.com/chipjacks/passport-mapmyfitness/tree/master/examples/login).\n\n## Credits\n\n  - [Jared Hanson](http://github.com/jaredhanson)\n\n## License\n\n[The MIT License](http://opensource.org/licenses/MIT)\n\nCopyright (c) 2014 Chip Jackson \u003c[http://chipjacks.com/](http://chipjacks.com/)\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchipjacks%2Fpassport-mapmyfitness","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchipjacks%2Fpassport-mapmyfitness","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchipjacks%2Fpassport-mapmyfitness/lists"}