1.2.3 • Published 5 years ago

aspnet-auth v1.2.3

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

aspnet-auth

Greenkeeper badge GitHub license codecov Build Status npm npm Average time to resolve an issue Percentage of issues still open

A standalone lightweight javascript library for authenticating with ASP.NET OWIN site.

Getting Started

Install

From CDN

<script src="https://cdn.jsdelivr.net/npm/aspnet-auth"></script>

From npm

npm install aspnet-auth --save

Initialize

const aspnetAuth = new AspnetAuth({
  url: 'http://your-domain-name',
});

Usage

register

aspnetAuth.register('email@email.com', 'SomePassword').then((result) => {
  // returns result.status = 200 on success
  done();
})
  .catch((err) => {
    console.log(err);
  });

login

aspnetAuth.login('email@email.com', 'SomePassword').then((result) => {
  // returns result.status = 200 on success
  done();
})
  .catch((err) => {
    console.log(err);
  });
1.2.3

5 years ago

1.2.2

5 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.1.8

5 years ago

1.1.7

5 years ago

1.0.2

5 years ago

1.1.6

6 years ago

1.1.5

6 years ago

1.1.4

6 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago