-
Notifications
You must be signed in to change notification settings - Fork 0
incandescent/CouchAuth
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
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 0
No packages published