npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

launchcode-auth

v0.1.0-beta.5

Published

Provides easy-to-configure Express routes for social and e-mail/password authentication, using JWT tokens as proof of auth. We're adding an AngularJS module & seed project to get you started, but we're not quite there as of 2014/10/09.

Downloads

8

Readme

Launchcode-auth

Launchcode-auth is a set of Express routes that can help you quickly set up an authentication server supporting social authentication for Google, Facebook and Windows Live users, as well as users registering with an e-mail address and password. Launchcode-auth also includes a seed application and module for AngularJS projects that provides JWT-based authentication and makes it very quick to get an AngularJS-based application up and running with support for social and e-mail authentication.

###What are we trying to accomplish?

  • Make it very easy to get an AngularJS application up and running with social and e-mail authentication built in
  • Make it extremely easy for your potential users to sign up to use your application
  • Enable the association of multiple types of sign-on with a single account. For example, a user should be able to sign up for your service with their Facebook account, link their Google account and sign in with that or set up a password and then use their e-mail address and password to sign in.

###Features of launchcode-auth include the following:

  • Social authentication support for Google, Facebook and Microsoft WindowsLive accounts (via passport.js)
  • E-mail & password authentication support
  • Client/Server sessions maintained through JSON Web Tokens
  • Stateless server (with the exception of handling callbacks from the social authentication providers)
  • Normalization of accounts where e-mail address is the same - that is, creation of a new account via e-mail/password or social mechanism where the e-mail address is already in use will be detected and the user prompted to sign into their existing account.
  • Linking between accounts using the same primary e-mail address
  • Password changes and recovery handled through e-mail notifications using Mandrill
  • User account info stored

###Plans for the near future

  • Add additional configuration options for data persistence so that MySQL, Postgres and other persistence layers can be used, in addition to the existing Firebase persistence.

Hey, why can't I use Twitter or Yahoo as authentication mechanisms with this when Passport.js supports them?

While our initial intent included support for these two networks as well, their APIs do not provide access to the user's e-mail address, leaving us without a key for linking accounts that belong to the same user. Disappointed that we would have to make the sign-up process more difficult for users signing up using Twitter or Yahoo! (by adding an extra step to collect and validate and e-mail address) we looked into the penetration of these two services in the realm of social authentication and found that they significantly trail not only Facebook and Google, but also WindowsLive, and thus the additional support wasn't warranted, at least in this early release.

A little more detail...

Twitter 
    Unfortunately, Twitter does not provide access to e-mail addresses associated with the account and so accounts created via Twitter could not be linked with other authentication mechanisms without forcing through a more complicated sign-up process, so we've elected to leave it out.
Yahoo
    Similar to Twitter, Yahoo! doesn't provide the user's e-mail address as a part of their information (unless the user grants your application full-write access to their profile!) and so we've left out support for this kind of authentication, again to ensure the sign-up process is as simple as possible.