FEAT: Update OAuth Connection

This commit is contained in:
Victor Radael
2022-12-20 17:01:00 -03:00
parent 0fc8c427a2
commit 190a63f0eb
3 changed files with 13 additions and 5 deletions
+2
View File
@@ -23,6 +23,7 @@ export class OauthService {
user_id,
customer_id,
customer_name,
id,
} = query;
const properties = { plugin, credentials_type: 'oauth' };
@@ -45,6 +46,7 @@ export class OauthService {
type,
properties,
plugin,
id,
};
return jwt.sign({ ...newConnection }, process.env.JWT_PRIVATE_KEY);
}