Browse Source

fix: API Token instead of AUTH Token (#8579)

pull/8598/head
Raju Udava 6 months ago committed by GitHub
parent
commit
4cc97ce1ad
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      packages/nc-gui/components/smartsheet/details/Api.vue

4
packages/nc-gui/components/smartsheet/details/Api.vue

@ -73,7 +73,7 @@ const snippet = computed(
() => () =>
new HTTPSnippet({ new HTTPSnippet({
method: 'GET', method: 'GET',
headers: [{ name: 'xc-auth', value: token.value, comment: 'JWT Auth token' }], headers: [{ name: 'xc-token', value: '<Your API Token>', comment: 'API token' }],
url: apiUrl.value, url: apiUrl.value,
queryString: [ queryString: [
...Object.entries(queryParams.value || {}).map(([name, value]) => { ...Object.entries(queryParams.value || {}).map(([name, value]) => {
@ -95,7 +95,7 @@ const code = computed(() => {
const api = new Api({ const api = new Api({
baseURL: "${(appInfo.value && appInfo.value.ncSiteUrl) || '/'}", baseURL: "${(appInfo.value && appInfo.value.ncSiteUrl) || '/'}",
headers: { headers: {
"xc-auth": ${JSON.stringify(token.value as string)} "xc-token": "<Your API Token>"
} }
}) })

Loading…
Cancel
Save