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:
Anwarul Islam
2024-03-28 20:58:48 +06:00
committed by GitHub
parent 81f1e05a6c
commit 1f7a8edb14
11 changed files with 570 additions and 127 deletions

View File

@@ -93,12 +93,13 @@ onMounted(async () => {
// Indicates the access token generation flow originated from the modal for setting authorization/headers at the collection level
if (context?.type === "collection-properties") {
// Set the access token in `localStorage` to retrieve from the modal while redirecting back
const authConfig: PersistedOAuthConfig = {
...persistedOAuthConfig,
token: tokenInfo.right.access_token,
}
persistenceService.setLocalConfig(
"oauth_temp_config",
JSON.stringify(<PersistedOAuthConfig>{
...persistedOAuthConfig,
token: tokenInfo.right.access_token,
})
JSON.stringify(authConfig)
)
toast.success(t("authorization.oauth.token_fetched_successfully"))