codeuino / social-platform-donut-backend

Donut API:
http://donut-api-prod.codeuino.org/
GNU General Public License v3.0
24 stars 57 forks source link

Implements GoogleOAuth via Passport and Cookie based auth #197

Closed lazycipher closed 3 years ago

lazycipher commented 3 years ago

name: Implement GoogleOAuth and Cookie-based auth about: This PR implements Google OAuth title: Implement GoogleOAuth and Cookie-based auth linked frontend PR: https://github.com/codeuino/social-platform-donut-frontend/pull/657


Problem

Implement GoogleOAuth and Cookie-based auth

Solution of problem

Used Passport.js for Google OAuth and used cookie parser for cookie-based auth.

In Case of UI Changes

NA

Type of Change

[ ] Bug fix [x] New Feature [ ] Development of UI/UX prototypes [ ] Small refactor [ ] Change in Documentation

Checklist

[x] My code follows the same style as the codebase [x] My Code change requires a change in documentation [ ] I have updated the Readme accordingly [x] I made PR against development branch [ ] I have run the test cases locally and it's passing. [ ] I have squashed my commits

lazycipher commented 3 years ago

@vaibhavdaren, @capedcrusader23, @Rupeshiya, @AuraOfDivinity Please review once. Note: Code refactoring is left!

lazycipher commented 3 years ago

@lazycipher Please have a look at comment

@Rupeshiya, I've followed this for implementing this: http://www.passportjs.org/docs/google/

lazycipher commented 3 years ago

@Rupeshiya, Anything apart from "" and ;?

lazycipher commented 3 years ago

@vaibhavdaren, Should we move ahead with this?