0.1.15 • Published 4 months ago

lokey.js v0.1.15

Weekly downloads
-
License
-
Repository
-
Last release
4 months ago

Lokey

This project is a TypeScript-based authentication system, utilizing JWT (JSON Web Tokens) for secure user authentication. It provides a class Lokey that handles the authentication process, including token storage, retrieval, validation, and refresh.

Installation

npm i lokey.js

Usage

The main class in this project is Lokey. It provides methods for handling the authentication process.

Here's a basic example of how to use it:

import {Lokey} from './lokey';

const lokey = Lokey.getInstance();

lokey.init({
    auth_service_url: "http://localhost:10010/auth",
    client_id: "inner",
    redirect_url: "http://localhost:4200"
}).then(payload => {
    console.log(payload);
    console.log(lokey.access_token);
}).catch(err => {
    console.error(err);
});

Built With

  • TypeScript - The main programming language used.
  • JOSE - Used for JWT decoding.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

0.1.10

4 months ago

0.1.11

4 months ago

0.1.12

4 months ago

0.1.14

4 months ago

0.1.15

4 months ago

0.1.0

5 months ago

0.1.2

5 months ago

0.1.1

5 months ago

0.1.8

5 months ago

0.1.7

5 months ago

0.1.9

4 months ago

0.1.4

5 months ago

0.1.3

5 months ago

0.1.6

5 months ago

0.1.5

5 months ago

0.0.12

5 months ago

0.0.13

5 months ago

0.0.14

5 months ago

0.0.11

5 months ago

0.0.10

5 months ago

0.0.9

5 months ago

0.0.8

5 months ago

0.0.7

5 months ago

0.0.6

5 months ago

0.0.5

5 months ago

0.0.4

5 months ago

0.0.3

5 months ago

0.0.2

5 months ago

0.0.1

5 months ago