widgit_accounts_sdk 0.0.11 → 0.0.13
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/widgit_accounts_sdk/client.rb +14 -0
- 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: 9f2281a4180396946dc5cfe6311f15b7e6cc37be9909dc58baf172f52988661e
|
|
4
|
+
data.tar.gz: 90e39a109f5ca09c7b71c014207e36501792f4f404536297e6e1372837be8235
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bc0948777be3a85f00b3eca48876e352e5a50afb037f9da7991f33483aec1d95bc2b519e82829d38243aa0f8063f4ff8b8cc45c4391f88449609341d93b0438e
|
|
7
|
+
data.tar.gz: a387ecdac5978e0705022d6f7a7901ec9578fc9f67ceb06b81a53ec4d3a1b8970a809708fc134b8b37811caa313afda0d51a8367da0da9d1853d3556121c667e
|
|
@@ -76,6 +76,20 @@ module WidgitAccountsSdk
|
|
|
76
76
|
return response
|
|
77
77
|
end
|
|
78
78
|
|
|
79
|
+
def password_reset(email: nil, uid: nil)
|
|
80
|
+
params = { email: email, uid: uid }.compact
|
|
81
|
+
response = request("/api/v1/accounts/password_reset?#{params.to_query}", :post)
|
|
82
|
+
return failed(response['error']) if response['status'] == 'failed'
|
|
83
|
+
return response
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
def invite_url(email: nil, uid: nil)
|
|
87
|
+
params = { email: email, uid: uid }.compact
|
|
88
|
+
response = request("/api/v1/accounts/invite_url?#{params.to_query}", :post)
|
|
89
|
+
return failed(response['error']) if response['status'] == 'failed'
|
|
90
|
+
return response
|
|
91
|
+
end
|
|
92
|
+
|
|
79
93
|
def valid_access_token?(token)
|
|
80
94
|
begin
|
|
81
95
|
JWT.decode(
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: widgit_accounts_sdk
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.13
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Stu Wright
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2026-
|
|
12
|
+
date: 2026-09-07 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: jwt
|