Skip to content

Instantly share code, notes, and snippets.

@jacobdo2
Created June 8, 2020 08:07
Show Gist options
  • Save jacobdo2/14753cd584c480308b030f484b3bd4a6 to your computer and use it in GitHub Desktop.
Save jacobdo2/14753cd584c480308b030f484b3bd4a6 to your computer and use it in GitHub Desktop.
auth.config.ts content
import { Injectable } from '@nestjs/common';
@Injectable()
export class AuthConfig {
public userPoolId: string = process.env.COGNITO_USER_POOL_ID;
public clientId: string = process.env.COGNITO_CLIENT_ID;
public region: string = process.env.COGNITO_REGION;
public authority = `https://cognito-idp.${process.env.COGNITO_REGION}.amazonaws.com/${process.env.COGNITO_USER_POOL_ID}`;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment