-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#164796889 twitter authentication (#44)
* #164796889 twitter authentication user can signup to application using twitter [finishes #164796889] * #164796889 add token to twitter authentication add token and return response [#finishes 164796889] * #164796889-twitter-authentication add twitter authentication to authors haven [finishes #164796889] * #164796889-twitter-authentication fixing errors arising from rebasing [finishes #164796889] * #164796889 add username to token add username to authentication token [finishes #164796889] * #164796889 removing repeating code remove reoccuring serialize and deserialize codes [finishes 164796889]
- Loading branch information
1 parent
3b28366
commit 0f6ee0d
Showing
8 changed files
with
392 additions
and
152 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,15 @@ | ||
import { Strategy as FacebookStrategy } from 'passport-facebook'; | ||
import { Strategy as GoogleStrategy } from 'passport-google-oauth20'; | ||
import { Strategy as TwitterStrategy } from 'passport-twitter'; | ||
import passportConfig from '../config/passportConfig'; | ||
import strategyCallback from './socialCallback'; | ||
|
||
const facebookStrategy = new FacebookStrategy(passportConfig.facebookAuth, strategyCallback); | ||
const googleStrategy = new GoogleStrategy(passportConfig.googleAuth, strategyCallback); | ||
const twitterStrategy = new TwitterStrategy(passportConfig.twitterAuth, strategyCallback); | ||
|
||
export default { | ||
facebookStrategy, | ||
googleStrategy, | ||
twitterStrategy | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters