Skip to content
This repository has been archived by the owner on Oct 21, 2024. It is now read-only.

Commit

Permalink
remove key log
Browse files Browse the repository at this point in the history
  • Loading branch information
thdxr committed Feb 24, 2024
1 parent 02f8de1 commit ddd8f4b
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 9 deletions.
4 changes: 1 addition & 3 deletions pkg/platform/src/components/aws/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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),
},
};
Expand Down
2 changes: 1 addition & 1 deletion sdk/js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 0 additions & 2 deletions sdk/js/src/auth/handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,6 @@ export function AuthHandler<
};
}

console.log(process.env.AUTH_PRIVATE_KEY!);
console.log(process.env.AUTH_PUBLIC_KEY!);
const options: Omit<AdapterOptions<any>, "name"> = {
signing: {
privateKey: jose.importPKCS8(process.env.AUTH_PRIVATE_KEY!, "RS512"),
Expand Down
4 changes: 1 addition & 3 deletions sdk/js/src/auth/session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ export function createSessionBuilder<

return {
async verify(token: string): Promise<SessionValue> {
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");
}
Expand Down

0 comments on commit ddd8f4b

Please sign in to comment.