Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Oauth Settings issue

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

Best Answer
0 Votes
0 REPLIES 0