jwt contains {scope, permissions, user_sid, account_sid, service_provider_sid}, force_change now in the body of /login response

This commit is contained in:
Dave Horton committed 2022-10-27 10:50:17 -04:00
1 parent 35214a04dc
commit 8d303390b7
2 files changed
+11 -5

No files matched your search

+1 -2
View File
@@ -51,8 +51,7 @@ test('speech credentials tests', async(t) => {
const token = jwt.sign({
account_sid,
account_sid,
scope: "account",
scope: 'account',
permissions: ["PROVISION_USERS", "PROVISION_SERVICES", "VIEW_ONLY"]
}, process.env.JWT_SECRET, { expiresIn: '1h' });
const authUser = {bearer: token};