stytch 10.8.0 → 10.9.0
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 +4 -4
- data/lib/stytch/b2b_passwords.rb +12 -2
- data/lib/stytch/version.rb +1 -1
- data/lib/stytch/webauthn.rb +13 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 37ef91117acc932dce839f2a5257f0b6ae2b309db949faf7890940bd423e291f
|
4
|
+
data.tar.gz: a0eec3c205a40bc02f223b76ddc9a6f6f46f34fed374d6bf1dd78bdd108df886
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 74f3f9ca261c3621f9d71bcb924468955f75f8578fb0877f864687df1f7516e4a2aa777e6f76ed34b98661427e0bd412867ad47b3482960bda5617a7fc57fc82
|
7
|
+
data.tar.gz: 1f4c5375484f88c0ade67f85a91f70d2a7e54ca04341ebc30cf7d125860f266c39c7388c78ab9b0047e28e0644133305455ff715cd4cea36d8d74413a02cbce3
|
data/lib/stytch/b2b_passwords.rb
CHANGED
@@ -406,6 +406,9 @@ module StytchB2B
|
|
406
406
|
# reset_password_template_id::
|
407
407
|
# Use a custom template for reset password emails. By default, it will use your default email template. The template must be a template using our built-in customizations or a custom HTML email for Magic Links - Reset Password.
|
408
408
|
# The type of this field is nilable +String+.
|
409
|
+
# verify_email_template_id::
|
410
|
+
# (no documentation yet)
|
411
|
+
# The type of this field is nilable +String+.
|
409
412
|
#
|
410
413
|
# == Returns:
|
411
414
|
# An object with the following fields:
|
@@ -432,7 +435,8 @@ module StytchB2B
|
|
432
435
|
code_challenge: nil,
|
433
436
|
login_redirect_url: nil,
|
434
437
|
locale: nil,
|
435
|
-
reset_password_template_id: nil
|
438
|
+
reset_password_template_id: nil,
|
439
|
+
verify_email_template_id: nil
|
436
440
|
)
|
437
441
|
headers = {}
|
438
442
|
request = {
|
@@ -445,6 +449,7 @@ module StytchB2B
|
|
445
449
|
request[:login_redirect_url] = login_redirect_url unless login_redirect_url.nil?
|
446
450
|
request[:locale] = locale unless locale.nil?
|
447
451
|
request[:reset_password_template_id] = reset_password_template_id unless reset_password_template_id.nil?
|
452
|
+
request[:verify_email_template_id] = verify_email_template_id unless verify_email_template_id.nil?
|
448
453
|
|
449
454
|
post_request('/v1/b2b/passwords/email/reset/start', request, headers)
|
450
455
|
end
|
@@ -984,6 +989,9 @@ module StytchB2B
|
|
984
989
|
# Request support for additional languages [here](https://docs.google.com/forms/d/e/1FAIpQLScZSpAu_m2AmLXRT3F3kap-s_mcV6UTBitYn6CdyWP0-o7YjQ/viewform?usp=sf_link")!
|
985
990
|
#
|
986
991
|
# The type of this field is nilable +String+.
|
992
|
+
# verify_email_template_id::
|
993
|
+
# (no documentation yet)
|
994
|
+
# The type of this field is nilable +String+.
|
987
995
|
#
|
988
996
|
# == Returns:
|
989
997
|
# An object with the following fields:
|
@@ -1000,7 +1008,8 @@ module StytchB2B
|
|
1000
1008
|
reset_password_template_id: nil,
|
1001
1009
|
reset_password_expiration_minutes: nil,
|
1002
1010
|
pkce_code_challenge: nil,
|
1003
|
-
locale: nil
|
1011
|
+
locale: nil,
|
1012
|
+
verify_email_template_id: nil
|
1004
1013
|
)
|
1005
1014
|
headers = {}
|
1006
1015
|
request = {
|
@@ -1012,6 +1021,7 @@ module StytchB2B
|
|
1012
1021
|
request[:reset_password_expiration_minutes] = reset_password_expiration_minutes unless reset_password_expiration_minutes.nil?
|
1013
1022
|
request[:pkce_code_challenge] = pkce_code_challenge unless pkce_code_challenge.nil?
|
1014
1023
|
request[:locale] = locale unless locale.nil?
|
1024
|
+
request[:verify_email_template_id] = verify_email_template_id unless verify_email_template_id.nil?
|
1015
1025
|
|
1016
1026
|
post_request('/v1/b2b/passwords/discovery/email/reset/start', request, headers)
|
1017
1027
|
end
|
data/lib/stytch/version.rb
CHANGED
data/lib/stytch/webauthn.rb
CHANGED
@@ -334,5 +334,18 @@ module Stytch
|
|
334
334
|
|
335
335
|
put_request("/v1/webauthn/#{webauthn_registration_id}", request, headers)
|
336
336
|
end
|
337
|
+
|
338
|
+
def credentials(
|
339
|
+
user_id:,
|
340
|
+
domain:
|
341
|
+
)
|
342
|
+
headers = {}
|
343
|
+
query_params = {
|
344
|
+
user_id: user_id,
|
345
|
+
domain: domain
|
346
|
+
}
|
347
|
+
request = request_with_query_params('/v1/webauthn/credentials', query_params)
|
348
|
+
get_request(request, headers)
|
349
|
+
end
|
337
350
|
end
|
338
351
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stytch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 10.
|
4
|
+
version: 10.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- stytch
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-03-
|
11
|
+
date: 2025-03-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|