has_secure_passkey 0.2.0 → 0.2.1
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.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c54c1bf83e6becd02d657ba22ec4884ed14e7b99b79afc75f8caf859c8be2694
|
4
|
+
data.tar.gz: 72a094191bbb4464689483eabb01fa35836e8bdfb3190200bfafce2288353b91
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4aeea114f586d90179990ea7ae2ceb6d0000799e8be424834309709639bb5c679f7c349b98a8ef5e30c69d15ab4b77c734ce15850d7c4a318d1ed9bcfdcbbecb
|
7
|
+
data.tar.gz: 0622ccab3811b45ac7c8fb69eaa0dd36c0eb081c18591ca29001aedce843af69eb96422d0457619cd87fbf098bec7934116a6e12ea185b78d62fafadcd9c6d4c
|
@@ -25,8 +25,12 @@ module HasSecurePasskey
|
|
25
25
|
**options)
|
26
26
|
end
|
27
27
|
|
28
|
-
def button_to_passkey_login(text, path, **options, &block)
|
29
|
-
|
28
|
+
def button_to_passkey_login(text, path = nil, **options, &block)
|
29
|
+
if block_given?
|
30
|
+
button_to has_secure_passkey.challenges_path(text), **options, &block
|
31
|
+
else
|
32
|
+
button_to text, has_secure_passkey.challenges_path(path), **options
|
33
|
+
end
|
30
34
|
end
|
31
35
|
end
|
32
36
|
end
|