Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support pass verifyToken to MessengerBot or MessengerConnector #204

Merged
merged 1 commit into from
Mar 12, 2018

Conversation

chentsulin
Copy link
Collaborator

Support both:

  • pass verifyToken in server config
const bot = new MessengerBot({
  accessToken: config.accessToken,
  appSecret: config.appSecret,
});

const server = createServer(bot, { verifyToken: config.verifyToken });
  • pass verifyToken in bot config
new MessengerBot({
  accessToken: config.accessToken,
  appSecret: config.appSecret,
  verifyToken: config.verifyToken
});

const server = createServer(bot);

@tw0517tw
Copy link
Collaborator

Great! This should be less confusing.

@tw0517tw tw0517tw merged commit 1e17665 into master Mar 12, 2018
@tw0517tw tw0517tw deleted the use-verifyToken-from-connector branch March 12, 2018 03:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants