Skip to content

incandescent/CouchAuth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

CouchAuth

Wrapper around $.couch used to manage authentication 
in a backbone event-based fashion

dependencies: underscore, Backbone.js, couch, jQuery


example usage:

var auth = new CouchAuth(); // TODO replace it with singleton?

// signup
auth.signup("bob", "secret", {success: function(){
  //success callback
});

// login
auth.login("bob", "secret", {success: function(){
  //success callback
});

// logout
auth.logout();

// test if user is authenticated
auth.isLogin(function(auth) {
  // auth = true if user is authenticated and false otherwise 
});

About

Event based authentication for Couchapps based on Backbone

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published