{"id":25606970,"url":"https://github.com/panntod/oauth-nodejs","last_synced_at":"2025-08-31T19:43:46.674Z","repository":{"id":204828638,"uuid":"712305431","full_name":"panntod/Oauth-NodeJs","owner":"panntod","description":"This repository is a digital chronicle of my adventures in mastering Google's OAuth 2.0 with the elegance of Node Js📚","archived":false,"fork":false,"pushed_at":"2024-02-10T23:43:44.000Z","size":33,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-03T22:46:53.750Z","etag":null,"topics":["ejs","express-js","google","mongodb","mongosee","node-js","oauth2","vercel"],"latest_commit_sha":null,"homepage":"https://todolist-node-js.vercel.app/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/panntod.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-10-31T07:52:12.000Z","updated_at":"2024-03-27T17:54:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"5f71c400-2642-4fd0-a620-ebd17e3cd628","html_url":"https://github.com/panntod/Oauth-NodeJs","commit_stats":null,"previous_names":["panntod/oauth-nodejs"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/panntod/Oauth-NodeJs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/panntod%2FOauth-NodeJs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/panntod%2FOauth-NodeJs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/panntod%2FOauth-NodeJs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/panntod%2FOauth-NodeJs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/panntod","download_url":"https://codeload.github.com/panntod/Oauth-NodeJs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/panntod%2FOauth-NodeJs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273032930,"owners_count":25034067,"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","status":"online","status_checked_at":"2025-08-31T02:00:09.071Z","response_time":79,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["ejs","express-js","google","mongodb","mongosee","node-js","oauth2","vercel"],"created_at":"2025-02-21T19:17:52.537Z","updated_at":"2025-08-31T19:43:46.649Z","avatar_url":"https://github.com/panntod.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OAuth Google 2.0 🌐\n\n## Deskripsi\n\nDalam repo ini, mengimplementasikan OAuth atau autentikasi menggunakan layanan dari Google (versi 2.0). Setelah berhasil login, akan menampilkan sebuah web todolist sederhana yang menyimpan data menggunakan MongoDB dan menggunakan Materialize untuk membuat tampilan website lebih menarik.\n\n## Fitur\n\n- Sistem CRUD ✨\n- Akses MongoDB 📊\n- Rest API 🌐\n- OAuth Google (v2.0) 🔐\n\n## Cara Membuat Aplikasi\n\n### Langkah 1:\n\nPastikan sudah membuat OAuth Google Project atau buat menggunakan link ini:\n\n[Google Cloud Console](https://console.cloud.google.com/projectselector2/apis/credentials/consent?supportedpurview=project).\n\n### Langkah 2:\n\nsetelah itu masukan token api yang telah didapatkan ke dalam `.env`\n\n```env\n {\n      PORT=3000\n      MONGO_URI=\u003cYourMongoUri\u003e\n      GOOGLE_CLIENT_ID=\u003cYourToken\u003e.apps.googleusercontent.com\n      GOOGLE_CLIENT_SECRET=\u003cYourToken\u003e\n  },\n```\n\n### Langkah 3:\n\ndan digunakan untuk memproses `passport.js` untuk menyimpan data yang akan dikirim ke Google\n\n```js\n {\n        clientID: process.env.GOOGLE_CLIENT_ID,\n        clientSecret: process.env.GOOGLE_CLIENT_SECRET,\n        callbackURL: \"/auth/google/callback\",\n  },\n```\n\n### Langkah 4:\n\nJalan kan perintah ini untuk mendapatkan package:\n\n```\nnpm install\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpanntod%2Foauth-nodejs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpanntod%2Foauth-nodejs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpanntod%2Foauth-nodejs/lists"}