09-02-2022 06:19
09-02-2022 06:19
Hello,
It's possible to set the clientId & clientSecret from a value fielded by the user with an TextInput settings ?
Like that :
<TextInput
settingsKey="APIClientId"
label="API Client Id"
/>
<TextInput
settingsKey="APIClientSecret"
label="API Client Secret"
/>
<Oauth
settingsKey="oauth"
title="Login"
label="API"
status="Login"
authorizeUrl=""
requestTokenUrl=""
clientId={props.settings.APIClientId}
clientSecret={props.settings.APIClientSecret}
scope=""
onAccessToken={async (data) => {
console.log(data.access_token);
}}
/>
I don't know why, it doesn't work.
Thanks for your help :).
Mike