Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sst: 'environment' does not exist in type 'AuthArgs' #154

Open
yiminghan opened this issue Jan 15, 2025 · 0 comments
Open

sst: 'environment' does not exist in type 'AuthArgs' #154

yiminghan opened this issue Jan 15, 2025 · 0 comments

Comments

@yiminghan
Copy link

I want to write something like this, otherwise I can't have direct access to the auth secrets.

 const auth = new sst.aws.Auth('Auth', {
      issuer: './src/auth/issuer.handler',
      environment: {
        GOOGLE_CLIENT_ID: process.env.GOOGLE_CLIENT_ID!,
        GOOGLE_SECRET: process.env.GOOGLE_SECRET!,
      },
    });

I understand secrets and other ways exists but this feels like a good improvement

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant