0.2.9 • Published 4 years ago

@martel/ctrlv v0.2.9

Weekly downloads
1
License
MIT
Repository
-
Last release
4 years ago

Ctrlv

A lightweight client for ctrlv.io; a simpler passwordless auth solution.

npm i @martel/ctrlv

Create a client instance

import { Auth } from "@martel/ctrlv"

const auth = new Auth("your-issuer-url", "your-app-id");

Bind automatic auth handling

auth.restoreAuthState()

Login user

auth.login()

Logout user

Pass true to the function to logout the current user from all sessions to your application

auth.logout()

Register for events

auth.on('change', ({ user, token }) => {})
auth.on('refresh', () => {})

TODO

  • More documentation of features

License

MIT.

0.2.7

4 years ago

0.2.9

4 years ago

0.2.8

4 years ago

0.2.6

4 years ago

0.2.5

4 years ago

0.2.4

4 years ago

0.2.3

4 years ago

0.2.2

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago