【发布时间】:2015-08-25 03:21:23
【问题描述】:
我需要一个创建自定义包以将 oauth 与外部服务一起使用,但不知道如何制作。我试图将accounts-github包克隆到我的项目中并修改它,但它不起作用。 这里有一些代码。
//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
我安装accounts-github包的步骤:
—clone from repo to app/packages directory
—modifyed name of package in package.js file
—meteor add my:package
—Donewithout any errors
但是你可以看到它不起作用。
主要问题:如何创建或修改现有包以使用另一个 oauth 提供程序?
提供者是 wargaming.net 没有像 facebook 或 google 那样提供密码。
附言我正在使用窗户
【问题讨论】:
-
您是否也将文件夹重命名为
my-package?