[CORL-183] Invite Users (#2349)

* feat: initial UI impl

* feat: attach react devtools hook in development

* feat: working mutations

* feat: polished the invite modal with mutation

Co-authored-by: Vinh <vinh@wikiwi.io>

* feat: added check

* feat: improve the invite server impl

* feat: admin invite interface improvements

* fix: update tests

* feat: moved invite UI to admin

* fix: include email enabled as condition for invite

* feat: added admin tests

* feat: added tests for invite complete flow

* fix: review
This commit is contained in:
Wyatt Johnson
2019-06-28 22:51:42 +00:00
committed by GitHub
co-authored by Vinh
parent 76033118e5
commit 51b142035e
96 changed files with 3647 additions and 847 deletions
@@ -1,4 +1,4 @@
export default function createAccessToken() {
export default function createAccessToken(payload = {}) {
return `${btoa(
JSON.stringify({
alg: "HS256",
@@ -7,6 +7,7 @@ export default function createAccessToken() {
)}.${btoa(
JSON.stringify({
jti: "31b26591-4e9a-4388-a7ff-e1bdc5d97cce",
...payload,
})
)}`;
}