authful 0.5.13 → 0.5.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/README.md +7 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MmM5MTY2NjVjMWMzYzA0NmQ3YzI3OThhYTljYzgyYmJiNTJkNmZmZg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MWM1N2ZlZjA2NWYzZGRiNzIwMTdkMzJjMzU1MjQyMzVjNjgyZWU1Nw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MmRiOGRkYWI0ODg4YmNlYmI1MWU3ODVlZGI1OWVhMmNiMDNmNWI4ZWI1NWMy
|
10
|
+
MWZiYTE0OGRhYmM3MDY4YThjN2Y5YmI1ZjU3NGYzMTJjYjYwYzA1MmYzNDc0
|
11
|
+
MTgzMDhmOGQ1NWY5M2ZlZjUyM2JhYmZjZmIxMjM1Mjg1ODJjNzU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
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"
|
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
|