1

I am trying to get OAuth working with Meteor.

I found an OAuth NPM, and now I'm trying to get it to be included in my Meteor project.

Here's what I'm trying:

I have a new folder next to the pre-made file called packages, and it's called "oauth".

Inside that folder, there is a single file called "package.js" and in there is:

Package.describe({
  summary: "Simple oauth"
});

Npm.depends({oauth: "0.9.10"});

And as part of the server-side code, it has:

Npm.require('oauth');

But I'm just getting an error of:

Error: Cannot find module 'oauth'

What, specifically, am I supposed to do?

This module doesn't have any dependencies, but I can't find any documentation on how this works.

user1624005
  • 967
  • 1
  • 12
  • 18

2 Answers2

2

Try following the process explained here - https://coderwall.com/p/srvdta

onepixelsolid
  • 630
  • 7
  • 15
0

You can use npm smart package. You have easy access 30k npm packages.

Read my guide on how to do it.

Arunoda Susiripala
  • 2,516
  • 1
  • 25
  • 30