Sha256: 2bb1ab3b38ce05e2c80648127fce1744132c329bc530375bcc4ede27063b07f0
Contents?: true
Size: 667 Bytes
Versions: 3
Compression:
Stored size: 667 Bytes
Contents
module Stytch module Endpoints module Email PATH = "/v1/emails".freeze def send_email_verification( user_id:, email_id:, magic_link_url:, expiration_minutes: ) request = { user_id: user_id, magic_link_url: magic_link_url, expiration_minutes: expiration_minutes } post("#{PATH}/#{email_id}/send_verification", request) end def verify_email(token:) post("#{PATH}/#{token}/verify", {}) end def delete_email(user_id:, email_id:) delete("#{PATH}/#{email_id}/users/#{user_id}") end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
stytch-0.1.8 | lib/stytch/endpoints/email.rb |
stytch-0.1.7 | lib/stytch/endpoints/email.rb |
stytch-0.1.5 | lib/stytch/endpoints/email.rb |