We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c01e017 commit 4245adfCopy full SHA for 4245adf
packages/crypto/src/tokenUtils.ts
@@ -3,10 +3,6 @@ import { Token } from "@sourcebot/schemas/v3/shared.type";
3
import { decrypt } from "./index.js";
4
5
export const getTokenFromConfig = async (token: Token, orgId: number, db: PrismaClient) => {
6
- if (typeof token !== 'object' || token === null) {
7
- throw new Error('Invalid token configuration');
8
- }
9
-
10
if ('secret' in token) {
11
const secretKey = token.secret;
12
const secret = await db.secret.findUnique({
0 commit comments