stytch 0.1.10 → 0.1.12
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/endpoints/magic.rb +29 -0
- data/lib/stytch/endpoints/user.rb +4 -0
- 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: a852d901e8cc3975662612396da2bcd3578867bc5bd6f70742416892a109d18b
|
4
|
+
data.tar.gz: 4e53ee2283a0adca79d27e1e5af96d6023eed27e034dc711085f725350ce2f9d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 853b94e64c62729198168eea85ca74f29f050f44bc03e2daa6dd5f409c4d9cd4abb5cf312f4d0861b0011ad2144f6ba597ba1c6730a57e3c30bd2fbbaa380e8e
|
7
|
+
data.tar.gz: d08b198ab79cf15faeb1b82a4f796cb15194fc0da33df6d209f1c2f4cc966d2584e949cd366be2cadd38e38b30a244e06a7f909979ea3b414fb37c0456c18cad
|
@@ -83,6 +83,35 @@ module Stytch
|
|
83
83
|
post("#{PATH}/login_or_invite", request)
|
84
84
|
end
|
85
85
|
|
86
|
+
def invite_by_email(
|
87
|
+
email:,
|
88
|
+
magic_link_url:,
|
89
|
+
expiration_minutes: nil,
|
90
|
+
attributes: {}
|
91
|
+
)
|
92
|
+
|
93
|
+
request = {
|
94
|
+
email: email,
|
95
|
+
magic_link_url: magic_link_url,
|
96
|
+
}
|
97
|
+
|
98
|
+
request[:expiration_minutes] = expiration_minutes if expiration_minutes != nil
|
99
|
+
request[:attributes] = attributes if attributes != {}
|
100
|
+
|
101
|
+
post("#{PATH}/invite_by_email", request)
|
102
|
+
end
|
103
|
+
|
104
|
+
def revoke_invite_by_email(
|
105
|
+
email:
|
106
|
+
)
|
107
|
+
|
108
|
+
request = {
|
109
|
+
email: email,
|
110
|
+
}
|
111
|
+
|
112
|
+
post("#{PATH}/revoke_invite", request)
|
113
|
+
end
|
114
|
+
|
86
115
|
def authenticate_magic(
|
87
116
|
token:,
|
88
117
|
attributes: {},
|
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.12
|
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-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|