No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

The least code way to add login to your CouchApp

If you write CouchApps using jQuery but don't want to use Evently, this is what you want. It is the simplest way to add login to your app.

It weighs in at 70 lines of JS, or about 2kb minified.


Simple Example usage:


This will turn #mylogindiv into an interactive form that lets the user signup and login with a minimum of fuss. If you have code you want to run, when they log in, you can provide callbacks.

Example Usage with optional loggedIn and loggedOut callbacks:

    loggedIn : function(userCtx) {
        alert("hello ";
    loggedOut : function() {
        alert("bye bye");


Join other CouchApp devs

Copyright Chris Anderson 2011

Apache 2.0 License