2015-08-19 63 views
4

我需要一个创建与外部服务使用oauth自定义包,但不知道如何做到这一点。我尝试克隆accounts-github包到我的项目和modyfy它,但它不工作。 这里有一些代码。流星定制oauth包

//test.html 
<template name = 'test'> 
    <a href="#" class=".gitLogin">Login</a> 
</test> 

//test.js 
Template.test.events({ 
    'click .gitLogin': function() { 
    return Meteor.loginWithGithub(); 
} 
}); 

错误的位置:

Meteor.loginWithGithub is not a function 

我的安装帐户,github上包步骤:

—clone from repo to app/packages directory 
—modifyed name of package in package.js file 
—meteor add my:package 
—Donewithout any errors 

但你可以看到它不工作。

主要问题:如何创建或修改现有的包以使用另一个oauth提供程序?

Provider is wargaming.net is not provided secret code like a facebook or google。

p.s.我正在使用windows

+0

你是否已将文件夹重命名为'my-package'? –

回答