@@ -68,7 +68,7 @@ export async function listDatabases(
|
|||||||
credentials: Credentials,
|
credentials: Credentials,
|
||||||
config: GitHubDatabaseConfig,
|
config: GitHubDatabaseConfig,
|
||||||
): Promise<ListDatabasesResult | undefined> {
|
): Promise<ListDatabasesResult | undefined> {
|
||||||
// On GHEC-DR, unauthenticated requests will enver work, so we should always ask
|
// On GHEC-DR, unauthenticated requests will never work, so we should always ask
|
||||||
// for authentication.
|
// for authentication.
|
||||||
const hasAccessToken =
|
const hasAccessToken =
|
||||||
!!(await credentials.getExistingAccessToken()) || hasGhecDrUri();
|
!!(await credentials.getExistingAccessToken()) || hasGhecDrUri();
|
||||||
|
|||||||
Reference in New Issue
Block a user