aspnet-auth

1.2.3 • Public • Published

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);
  });

Readme

Keywords

none

Package Sidebar

Install

npm i aspnet-auth

Weekly Downloads

1

Version

1.2.3

License

MIT

Unpacked Size

129 kB

Total Files

39

Last publish

Collaborators

  • halceyon