has_secure_passkey 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 454c83b4e39463d50421490b08ae415c3538c48893f906694a85096dc1408416
|
4
|
+
data.tar.gz: 5daa39a346b5640b2d0ea26ecb41a235d9aa0b7283cc122d272fc08cd840c67e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4f93a4448b35f0048fc6729c508fc60da3f087e539f56cfb1663f3da009b7b17331f1c34f39dad1f456488694ce49aec046e25110c67df795d39c685416cb1ca
|
7
|
+
data.tar.gz: eef21668eefe42c5b77551c8e1899a85973233586ec49ffc87ea0516e075ea82ff70d6e493f7c46e5ecfddcc6d35882fa3d2399db489ec5d281d2f59ba51c1e3
|
@@ -19,8 +19,7 @@ class HasSecurePasskey::OptionsForCreate
|
|
19
19
|
|
20
20
|
def message
|
21
21
|
self.class.verifier.generate(
|
22
|
-
{ challenge:, options:,
|
23
|
-
authenticatable: authenticatable.as_json(only: serializable_attributes) }.as_json
|
22
|
+
{ challenge:, options:, authenticatable: authenticatable.as_json }.as_json
|
24
23
|
)
|
25
24
|
end
|
26
25
|
|
@@ -46,8 +45,4 @@ class HasSecurePasskey::OptionsForCreate
|
|
46
45
|
exclude: authenticatable.passkeys.pluck(:external_id)
|
47
46
|
)
|
48
47
|
end
|
49
|
-
|
50
|
-
def serializable_attributes
|
51
|
-
authenticatable.class.column_names - ["id", "created_at", "updated_at"]
|
52
|
-
end
|
53
48
|
end
|