0.1.5 • Published 5 years ago
@schnack/plugin-auth-twitter v0.1.5
auth-twitter
Adds Twitter OAuth authentication to your Schnack server.
Usage
Add a plugins.auth-twitter section to your Schnack config file schnack.json:
{
"plugins": {
"auth-twitter": {
"consumer_key": "xxxxx",
"consumer_secret": "xxxxx"
}
}
}Then run
npm init schnackPreparation
- Create a new OAuth App on apps.twitter.com
- Name: the name of your blog
- Description: the description of your blog
- Website: the URL of your schnack instance (e.g. https://schnack.example.com)
- Callback URL: the URL of your schnack instance followed by
/auth/twitter/callback(e.g. https://schnack.example.com/auth/twitter/callback) - Check the checkbox "Allow this application to be used to Sign in with Twitter"
- Copy the Consumer Key and the Consumer Secret from "Keys and Access Tokens" to
plugins.auth-twitter.consumer_keyandplugins.auth-twitter.consumer_secretinschnack.json