fix: add issue token to dev api

Signed-off-by: Camila Belo <camilaibs@gmail.com>
This commit is contained in:
Camila Belo
2024-03-07 09:56:10 +01:00
parent ec9e1d2103
commit ff9906b68d
2 changed files with 5 additions and 1 deletions
@@ -127,6 +127,10 @@ class TechDocsDevApi implements TechDocsApi {
this.identityApi = identityApi;
}
async issueUserCookie(): Promise<{ expiresAt: string }> {
return { expiresAt: new Date().toISOString() };
}
async getApiOrigin() {
return await this.discoveryApi.getBaseUrl('techdocs');
}
@@ -14,7 +14,7 @@
* limitations under the License.
*/
import React, { ReactNode, Children, ReactElement, useState } from 'react';
import React, { ReactNode, Children, ReactElement } from 'react';
import { useOutlet } from 'react-router-dom';
import { ErrorPanel, Page } from '@backstage/core-components';