Closed zregvart closed 5 years ago
When GET /api/v1/connectors/{id}/credentials returns {} we should not invoke a POST /api/v1/connectors/{id}/credentials.
GET /api/v1/connectors/{id}/credentials
{}
POST /api/v1/connectors/{id}/credentials
This makes it so that the invocation of useOAuthFlow is conditional on the result of useConnectorCredentials.
useOAuthFlow
useConnectorCredentials
PR Storybook available here
Pull request approved by @riccardo-forina - applying approved label
When
GET /api/v1/connectors/{id}/credentials
returns{}
we should not invoke aPOST /api/v1/connectors/{id}/credentials
.This makes it so that the invocation of
useOAuthFlow
is conditional on the result ofuseConnectorCredentials
.