lib/stytch/magic_links.rb in stytch-3.12.0 vs lib/stytch/magic_links.rb in stytch-3.13.0

- old
+ new

@@ -70,11 +70,14 @@ login_magic_link_url: nil, signup_magic_link_url: nil, login_expiration_minutes: nil, signup_expiration_minutes: nil, attributes: {}, - code_challenge: nil + code_challenge: nil, + user_id: nil, + session_token: nil, + session_jwt: nil, ) request = { email: email } @@ -82,9 +85,12 @@ request[:signup_magic_link_url] = signup_magic_link_url unless signup_magic_link_url.nil? request[:login_expiration_minutes] = login_expiration_minutes unless login_expiration_minutes.nil? request[:signup_expiration_minutes] = signup_expiration_minutes unless signup_expiration_minutes.nil? request[:attributes] = attributes if attributes != {} request[:code_challenge] = code_challenge unless code_challenge.nil? + request[:user_id] = user_id unless user_id.nil? + request[:session_token] = session_token unless session_token.nil? + request[:session_jwt] = session_jwt unless session_jwt.nil? post_request("#{PATH}/send", request) end def login_or_create(