stytch 0.1.10 → 0.1.12

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 409176c57386a26803a2c84b7b2db5b7999b26e9feb619a58b00e4507152c2e3
4
- data.tar.gz: cf38edf9df963fa9cebb595b2471876417757c8a4c788386451440b4ce91ffb2
3
+ metadata.gz: a852d901e8cc3975662612396da2bcd3578867bc5bd6f70742416892a109d18b
4
+ data.tar.gz: 4e53ee2283a0adca79d27e1e5af96d6023eed27e034dc711085f725350ce2f9d
5
5
  SHA512:
6
- metadata.gz: fe97179b5728daf0552c6174577ab6769e49083cd3c99a7365759c9db36095a8ffe3a46f191452a89f318777fc83ec1996241f6c3b8d1234bb58f59d4f7d6e7d
7
- data.tar.gz: '09c91100429121ba1471f411a0b64f816f0bf66f7ac7e5fb7c2ab71b3ebfb79a787f5ec770d32d8c6570241a836e7e233cd7e201755122427cd843ef4f7fcff4'
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: {},
@@ -7,6 +7,10 @@ module Stytch
7
7
  get("#{PATH}/#{user_id}")
8
8
  end
9
9
 
10
+ def get_invited_users()
11
+ get("#{PATH}/invites")
12
+ end
13
+
10
14
  def create_user(
11
15
  email:,
12
16
  name: {},
@@ -1,3 +1,3 @@
1
1
  module Stytch
2
- VERSION = "0.1.10"
2
+ VERSION = "0.1.12"
3
3
  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: 0.1.10
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-19 00:00:00.000000000 Z
11
+ date: 2020-12-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday