mirror of
https://github.com/apotdevin/thunderhub.git
synced 2025-02-21 14:04:03 +01:00
fix: ๐ get sso without cert
This commit is contained in:
parent
020482255f
commit
57e7fb86be
1 changed files with 5 additions and 1 deletions
|
@ -2,6 +2,7 @@ import { GraphQLList } from 'graphql';
|
|||
import { ContextType } from 'api/types/apiTypes';
|
||||
import { ServerAccountType } from 'api/schemas/types/QueryType';
|
||||
import { SSO_ACCOUNT } from 'src/context/AccountContext';
|
||||
import { logger } from 'api/helpers/logger';
|
||||
import { requestLimiter } from '../../../helpers/rateLimiter';
|
||||
|
||||
export const getServerAccounts = {
|
||||
|
@ -12,7 +13,10 @@ export const getServerAccounts = {
|
|||
|
||||
const { macaroon, cert, host } = sso;
|
||||
let ssoAccount = null;
|
||||
if (macaroon && cert && host && ssoVerified) {
|
||||
if (macaroon && host && ssoVerified) {
|
||||
logger.debug(
|
||||
`Macaroon${cert && ', certificate'} and host found for SSO account`
|
||||
);
|
||||
ssoAccount = {
|
||||
name: 'SSO Account',
|
||||
id: SSO_ACCOUNT,
|
||||
|
|
Loadingโฆ
Add table
Reference in a new issue