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
2022-10-27 10:50:17 -04:00
parent 35214a04dc
commit 8d303390b7
2 changed files with 11 additions and 5 deletions
+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};