{"id":28076745,"url":"https://github.com/jaredhanson/passport-instagram","last_synced_at":"2025-05-13T01:49:34.708Z","repository":{"id":1913993,"uuid":"2841526","full_name":"jaredhanson/passport-instagram","owner":"jaredhanson","description":"Instagram authentication strategy for Passport and Node.js.","archived":false,"fork":false,"pushed_at":"2022-10-24T23:58:56.000Z","size":21,"stargazers_count":170,"open_issues_count":18,"forks_count":88,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-05-13T01:49:29.142Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.passportjs.org/packages/passport-instagram/?utm_source=github\u0026utm_medium=referral\u0026utm_campaign=passport-instagram\u0026utm_content=about","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/jaredhanson.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"patreon":"jaredhanson","ko_fi":"jaredhanson"}},"created_at":"2011-11-24T06:55:59.000Z","updated_at":"2025-01-18T18:56:48.000Z","dependencies_parsed_at":"2022-08-28T08:51:46.959Z","dependency_job_id":null,"html_url":"https://github.com/jaredhanson/passport-instagram","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredhanson%2Fpassport-instagram","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredhanson%2Fpassport-instagram/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredhanson%2Fpassport-instagram/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredhanson%2Fpassport-instagram/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jaredhanson","download_url":"https://codeload.github.com/jaredhanson/passport-instagram/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253856616,"owners_count":21974576,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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-05-13T01:49:34.103Z","updated_at":"2025-05-13T01:49:34.700Z","avatar_url":"https://github.com/jaredhanson.png","language":"JavaScript","funding_links":["https://patreon.com/jaredhanson","https://ko-fi.com/jaredhanson"],"categories":[],"sub_categories":[],"readme":"# Passport-Instagram\n\n[Passport](https://github.com/jaredhanson/passport) strategy for authenticating\nwith [Instagram](http://instagr.am/) using the OAuth 2.0 API.\n\nThis module lets you authenticate using Instagram in your Node.js applications.\nBy plugging into Passport, Instagram authentication can be easily and\nunobtrusively integrated into any application or framework that supports\n[Connect](http://www.senchalabs.org/connect/)-style middleware, including\n[Express](http://expressjs.com/).\n\n\u003cdiv align=\"center\"\u003e\n  \n:brain: [Understanding OAuth 2.0](https://www.passportjs.org/concepts/oauth2/?utm_source=github\u0026utm_medium=referral\u0026utm_campaign=passport-instagram\u0026utm_content=nav-concept) •\n:heart: [Sponsors](https://www.passportjs.org/sponsors/?utm_source=github\u0026utm_medium=referral\u0026utm_campaign=passport-instagram\u0026utm_content=nav-sponsors)\n\n\u003c/div\u003e\n\n[![npm](https://img.shields.io/npm/v/passport-instagram.svg)](https://www.npmjs.com/package/passport-instagram)\n[![build](https://img.shields.io/travis/jaredhanson/passport-instagram.svg)](https://travis-ci.org/jaredhanson/passport-instagram)\n[![coverage](https://img.shields.io/coveralls/jaredhanson/passport-instagram.svg)](https://coveralls.io/github/jaredhanson/passport-instagram)\n[...](https://github.com/jaredhanson/passport-instagram/wiki/Status)\n\n## Install\n\n```shell\n$ npm install passport-instagram\n```\n\n## Usage\n\n#### Configure Strategy\n\nThe Instagram authentication strategy authenticates users using a Instagram\naccount and OAuth 2.0 tokens.  The strategy requires a `verify` callback, which\naccepts these credentials and calls `done` providing a user, as well as\n`options` specifying a client ID, client secret, and callback URL.\n\n```js\npassport.use(new InstagramStrategy({\n    clientID: INSTAGRAM_CLIENT_ID,\n    clientSecret: INSTAGRAM_CLIENT_SECRET,\n    callbackURL: \"http://127.0.0.1:3000/auth/instagram/callback\"\n  },\n  function(accessToken, refreshToken, profile, done) {\n    User.findOrCreate({ instagramId: profile.id }, function (err, user) {\n      return done(err, user);\n    });\n  }\n));\n```\n\n#### Authenticate Requests\n\nUse `passport.authenticate()`, specifying the `'instagram'` strategy, to\nauthenticate requests.\n\nFor example, as route middleware in an [Express](http://expressjs.com/)\napplication:\n\n```js\napp.get('/auth/instagram',\n  passport.authenticate('instagram'));\n\napp.get('/auth/instagram/callback', \n  passport.authenticate('instagram', { failureRedirect: '/login' }),\n  function(req, res) {\n    // Successful authentication, redirect home.\n    res.redirect('/');\n  });\n```\n\n## Examples\n\nFor a complete, working example, refer to the [login example](https://github.com/jaredhanson/passport-instagram/tree/master/examples/login).\n\n## Tests\n\n```shell\n$ npm install --dev\n$ make test\n```\n\n[![Build Status](https://secure.travis-ci.org/jaredhanson/passport-instagram.png)](http://travis-ci.org/jaredhanson/passport-instagram)\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) 2011-2013 Jared Hanson \u003c[http://jaredhanson.net/](http://jaredhanson.net/)\u003e\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaredhanson%2Fpassport-instagram","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaredhanson%2Fpassport-instagram","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaredhanson%2Fpassport-instagram/lists"}