fix: add issue token to dev api
Signed-off-by: Camila Belo <camilaibs@gmail.com>
This commit is contained in:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user