Skip to content

Commit

Permalink
updated: Readme to new config format
Browse files Browse the repository at this point in the history
  • Loading branch information
RavenColEvol committed Mar 1, 2024
1 parent 13f2b47 commit 7d2dd85
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,13 @@ specifying a client ID, client secret, and callback URL.

```javascript
passport.use(new ContentstackStrategy({
clientID: CONTENTSTACK_CLIENT_ID,
clientSecret: CONTENTSTACK_CLIENT_SECRET,
authorizationURL:
"https://app.contentstack.com/apps/<APP_INSTALLATION_UID>/authorize",
callbackURL: "http://localhost:3000/auth/callback",
region: "<NA|EU|AZURE_NA|AZURE_EU>",
oauthConfig: [{
region: Regions.NA,
clientID: CONTENTSTACK_CLIENT_ID,
clientSecret: CONTENTSTACK_CLIENT_SECRET,
appInstallationUID: CONTENTSTACK_APP_UID,
}],
callbackURL: '/auth/callback',
},
function(accessToken, refreshToken, profile, done) {
User.findOrCreate({ email: profile.email }, function (err, user) {
Expand Down

0 comments on commit 7d2dd85

Please sign in to comment.