stytch 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/stytch/endpoints/email.rb +0 -19
- data/lib/stytch/version.rb +1 -1
- 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: dce77f663ed188c6e17b28e8a1152cb505caf33fbe331baf39bddafe27d72ef1
|
4
|
+
data.tar.gz: 287cd35a182658ddbfea53054ee6009369f93009af2237625f00a409f58dce2e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d01625b9eb70a78e699cbf8812d190c607b3b15e14ed54b1c864c5b8d0ed25f4fc60722788ea6814807265803b41cfcd1cdc30dc807f039acb0a5ad908ba6c0
|
7
|
+
data.tar.gz: 155eae0215c8e8e80e47e890863e094e5aad737301e45b9d62cd0313317d3c593c5fc8d06857950a5693af1de5acf2c1fc3f9893a3cd6f92fce41a631b4765cf
|
@@ -3,25 +3,6 @@ module Stytch
|
|
3
3
|
module Email
|
4
4
|
PATH = "/v1/emails".freeze
|
5
5
|
|
6
|
-
def send_email_verification(
|
7
|
-
user_id:,
|
8
|
-
email_id:,
|
9
|
-
magic_link_url:,
|
10
|
-
expiration_minutes:
|
11
|
-
)
|
12
|
-
request = {
|
13
|
-
user_id: user_id,
|
14
|
-
magic_link_url: magic_link_url,
|
15
|
-
expiration_minutes: expiration_minutes
|
16
|
-
}
|
17
|
-
|
18
|
-
post("#{PATH}/#{email_id}/send_verification", request)
|
19
|
-
end
|
20
|
-
|
21
|
-
def verify_email(token:)
|
22
|
-
post("#{PATH}/#{token}/verify", {})
|
23
|
-
end
|
24
|
-
|
25
6
|
def delete_email(user_id:, email_id:)
|
26
7
|
delete("#{PATH}/#{email_id}/users/#{user_id}")
|
27
8
|
end
|
data/lib/stytch/version.rb
CHANGED
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: 0.1.
|
4
|
+
version: 0.1.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- alex-stytch
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-12-
|
11
|
+
date: 2020-12-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|