fix: lint errors removed by using satisfies or as for type (#3934)
Co-authored-by: jamesgeorge007 <jamesgeorge998001@gmail.com> Co-authored-by: amk-dev <akash.k.mohan98@gmail.com>
This commit is contained in:
@@ -913,14 +913,16 @@ const generateOAuthToken = async () => {
|
||||
if (
|
||||
grantTypesInvolvingRedirect.includes(auth.value.grantTypeInfo.grantType)
|
||||
) {
|
||||
const authConfig: PersistedOAuthConfig = {
|
||||
source: props.source,
|
||||
context: props.isCollectionProperty
|
||||
? { type: "collection-properties", metadata: {} }
|
||||
: { type: "request-tab", metadata: {} },
|
||||
grant_type: auth.value.grantTypeInfo.grantType,
|
||||
}
|
||||
persistenceService.setLocalConfig(
|
||||
"oauth_temp_config",
|
||||
JSON.stringify(<PersistedOAuthConfig>{
|
||||
source: props.source,
|
||||
context: props.isCollectionProperty
|
||||
? { type: "collection-properties", metadata: {} }
|
||||
: { type: "request-tab" },
|
||||
})
|
||||
JSON.stringify(authConfig)
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user