authful 0.5.13 → 0.5.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +8 -8
  2. data/README.md +7 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ODhlYTdkYWM5ZGE0NmVhMWUyNjI3NDc2ZDBlNzhhYzRiMjcwZDVkMg==
4
+ MmM5MTY2NjVjMWMzYzA0NmQ3YzI3OThhYTljYzgyYmJiNTJkNmZmZg==
5
5
  data.tar.gz: !binary |-
6
- NWVhMTkxNWFkZjQ5N2FlMzlkOTI3ODhhY2I2OWFhODNkY2YxMDQ4OA==
6
+ MWM1N2ZlZjA2NWYzZGRiNzIwMTdkMzJjMzU1MjQyMzVjNjgyZWU1Nw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NDQ0MDVhYTM2ZjcxYzlmMzBjZTljY2RmZGY1M2I0ZDExZWQyMzY5NmRhMzVm
10
- OWFjZDBiNGRkNTY4ZDZlZTViOGQ2ODQ5ZTU2OGFkY2IzNDIxNWI3NzllNTIz
11
- ZTE0M2Y4NWIzZWUwYTBmMDVkOWNiZjEyNTJkMDQyNzQ1OGJkMjg=
9
+ MmRiOGRkYWI0ODg4YmNlYmI1MWU3ODVlZGI1OWVhMmNiMDNmNWI4ZWI1NWMy
10
+ MWZiYTE0OGRhYmM3MDY4YThjN2Y5YmI1ZjU3NGYzMTJjYjYwYzA1MmYzNDc0
11
+ MTgzMDhmOGQ1NWY5M2ZlZjUyM2JhYmZjZmIxMjM1Mjg1ODJjNzU=
12
12
  data.tar.gz: !binary |-
13
- YjlhN2M1MGI4ZmM3Nzk3ZDk3ZWQzNzQ3OGI4ZWI1YWY4ZmUyZmE3MDkxMmM0
14
- NGJmZDUyMzQ2ZjlmZDk4MWFhNmQ4M2ZlODdiNzg2MTZlNTIzNzUxZGU2MDUw
15
- MTc0NWE0MmI5MTdhOTQ2YTRiY2NjNmVmNjA1MGQ5OWUzZWU4NWY=
13
+ ODNiNzI0MTdlMzNhMWFmNzExNzRjN2ExMWYxZjg5MTg1NWE3NDNiZDQ0MmU2
14
+ NTA2ZDg1NjFjODlkNjdkNzM1ZWJjNDIzZDIzYjc0MDcyZDE2MTMxY2IzOWM4
15
+ MjMzNWZiNDYwZmU0MTBjNjNkZTIwZGE3MjljNDdkMTc0MWFlMDI=
data/README.md CHANGED
@@ -31,15 +31,21 @@ Authful.configure do |c|
31
31
  c.api_key = "<my api key>"
32
32
  end
33
33
 
34
- res = Authful.enroll("emailaddress@gmail.com", "12055555505")
34
+ res = Authful.enroll("emailaddress@gmail.com")
35
35
  res.qr_code # use this to display the QR code for the user signup
36
36
  res.token # You will want to save this token to your application, it is
37
37
  # the user's primary key to the authful service. It is **not**
38
38
  # the secret token used to generate OTP.
39
39
 
40
+ Authful.set_phone("token", "12005551212") # sets the users phone number
40
41
 
41
42
  Authful.send_sms("token") # sends sms token
43
+
42
44
  Authful.validate("token", "000000") # validates OTP token
45
+
46
+ res = Authful.reset("token") # Resets the users secret
47
+ res.qr_code # use this to display the new QR code for the user
48
+
43
49
  Authful.unenroll("token") # Remove user from Authful service
44
50
  ```
45
51
  ## Contributing
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: authful
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.13
4
+ version: 0.5.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Wyrosdick