sst / sst

Build full-stack apps on your own infrastructure.
https://sst.dev
MIT License
24.05k stars 1.85k forks source link

Cannot link resources for a OpenAuth component #5882

Closed JackHumphries9 closed 1 month ago

JackHumphries9 commented 1 month ago

Hi,

I'm writing a backend with SST and I've added an Auth (OpenAuth) component. I have secrets (such as provider secrets and database secrets) and I cannot link them with the standard API.

JackHumphries9 commented 1 month ago

Nevermind, I've realised you can pass the arguments into the function:

        const auth = new sst.aws.Auth("MY_AUTH", {
            issuer: {
                handler: "auth/index.handler",
                link: [
                    googleClientIdSecret,
                    googleClientSecretSecret,
                    databaseURL,
                ],
            },
        });