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

allow setting consumer key & secret in settings.json #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

TimBroddin
Copy link

Hi,

I created a small patch that introduces TwitMakerSafe. By using this function you can include your consumer key & secret in settings.json so you can use this in Methods without exposing your application credentials to the client.

Usage is simple, just include this in your settings:

"twit": {
    "consumer_key": "XXXXXXX",
    "consumer_secret": "XXXXX"
}

And instead of calling:

var Twit = new TwitMaker({ consumer_key: "", consumer_secret: "", access_token: "", access_token_secret: "" });

You can just call:

var Twit = TwitMakerSafe(accessToken, accessTokenSecret);

(wrapped in a Meteor.isServer if)

I hope you'd like to pull this in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant