Skip to content

Commit 560134a

Browse files
authored
Fix example oauth strategy
Fixes node-red#89
1 parent eb168ea commit 560134a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/security.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,11 @@ adminAuth: {
100100
options: {
101101
consumerKey: TWITTER_APP_CONSUMER_KEY,
102102
consumerSecret: TWITTER_APP_CONSUMER_SECRET,
103-
callbackURL: "http://example.com/auth/strategy/callback"
103+
callbackURL: "http://example.com/auth/strategy/callback",
104+
verify: function(token, tokenSecret, profile, done) {
105+
done(null, profile);
106+
}
104107
},
105-
verify: function(token, tokenSecret, profile, done) {
106-
done(null, profile);
107-
}
108108
},
109109
users: [
110110
{ username: "knolleary",permissions: ["*"]}

0 commit comments

Comments
 (0)