0.0.8 • Published 4 years ago

bitlogin v0.0.8

Weekly downloads
23
License
ISC
Repository
-
Last release
4 years ago

bitlogin

Serverless login with bitcoin

1. Login

a. Basic

Stores login info on localStorage

$bit("#login").login("moneybutton", (e) => {
  window.location.href = // redirect url
})

b. Advanced

You can also additionally store login info as cookie

$bit("#login").login("moneybutton", { cookie: true }, (e) => {
  window.location.href = // redirect url
})

2. Current User

let current_user = $bit.user()

3. Logout

Attach logout event handler to any element

$bit("#logout").logout((e) => {
  window.location.href = // redirect url
})
0.0.8

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago