refactor: tweaks

This commit is contained in:
jamesgeorge007
2020-02-01 22:49:09 +05:30
parent 3bd22f6b78
commit ad041a5cf1

View File

@@ -2790,15 +2790,15 @@ export default {
});
},
tokenReqChange({ target }) {
const targetReq = this.tokenReqs.find(({ name }) => name === target.value);
let {
const { details, name } = this.tokenReqs.find(({ name }) => name === target.value);
const {
oidcDiscoveryUrl,
authUrl,
accessTokenUrl,
clientId,
scope
} = targetReq.details;
this.tokenReqName = targetReq.name;
} = details;
this.tokenReqName = name;
this.oidcDiscoveryUrl = oidcDiscoveryUrl;
this.authUrl = authUrl;
this.accessTokenUrl = accessTokenUrl;