2015-08-19 65 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'? –

回答