mirror of
https://github.com/wassname/talk.git
synced 2026-09-10 12:43:11 +08:00
[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:
@@ -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,
|
||||
})
|
||||
)}`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user