Meteor custom oauth package -
i'm need create custom package using oauth external service, have no idea how make it. i'm tryed clone accounts-github package project , modyfy it, not working. code here.
//test.html <template name = 'test'> <a href="#" class=".gitlogin">login</a> </test> //test.js template.test.events({ 'click .gitlogin': function() { return meteor.loginwithgithub(); } });
error here:
meteor.loginwithgithub not function
my steps installing accounts-github package:
—clone repo app/packages directory —modifyed name of package in package.js file —meteor add my:package —donewithout errors
but can see not working.
main question: how create or modify existing package use oauth provider?
provider wargaming.net not providing secret code facebook or google.
p.s. , i'm using windows
there 2 packages each oauth service. other 1 has of logic related service. check out github
package https://github.com/meteor/meteor/tree/devel/packages/github
Comments
Post a Comment