From ddd8f4bfb7c552d9076dd4cab4638e86e19a2d1b Mon Sep 17 00:00:00 2001 From: Dax Raad Date: Sat, 24 Feb 2024 00:42:42 -0500 Subject: [PATCH] remove key log --- pkg/platform/src/components/aws/auth.ts | 4 +--- sdk/js/package.json | 2 +- sdk/js/src/auth/handler.ts | 2 -- sdk/js/src/auth/session.ts | 4 +--- 4 files changed, 3 insertions(+), 9 deletions(-) diff --git a/pkg/platform/src/components/aws/auth.ts b/pkg/platform/src/components/aws/auth.ts index 1082b9619..fc7dd2a6e 100644 --- a/pkg/platform/src/components/aws/auth.ts +++ b/pkg/platform/src/components/aws/auth.ts @@ -56,9 +56,7 @@ export class Auth extends Component implements Link.Linkable { /** @internal */ public getSSTLink() { return { - type: `{}`, - value: { - auth: true, + properties: { publicKey: secret(this.key.publicKeyPem), }, }; diff --git a/sdk/js/package.json b/sdk/js/package.json index f63dcd892..3abf1617e 100644 --- a/sdk/js/package.json +++ b/sdk/js/package.json @@ -3,7 +3,7 @@ "name": "sst", "type": "module", "sideEffects": false, - "version": "3.0.1-34", + "version": "3.0.1-35", "main": "./dist/index.js", "exports": { ".": "./dist/index.js", diff --git a/sdk/js/src/auth/handler.ts b/sdk/js/src/auth/handler.ts index 4659a9dfc..b738a41ba 100644 --- a/sdk/js/src/auth/handler.ts +++ b/sdk/js/src/auth/handler.ts @@ -110,8 +110,6 @@ export function AuthHandler< }; } - console.log(process.env.AUTH_PRIVATE_KEY!); - console.log(process.env.AUTH_PUBLIC_KEY!); const options: Omit, "name"> = { signing: { privateKey: jose.importPKCS8(process.env.AUTH_PRIVATE_KEY!, "RS512"), diff --git a/sdk/js/src/auth/session.ts b/sdk/js/src/auth/session.ts index 0fa65b88b..0b880b558 100644 --- a/sdk/js/src/auth/session.ts +++ b/sdk/js/src/auth/session.ts @@ -20,9 +20,7 @@ export function createSessionBuilder< return { async verify(token: string): Promise { - const auth = Object.values(Resource).find( - (value) => value.auth === true && value.publicKey, - ); + const auth = Object.values(Resource).find((value) => value.publicKey); if (!auth) { throw new Error("No auth resource found"); }