Skip to content

Commit

Permalink
feat: Create AuthConfig.ts file
Browse files Browse the repository at this point in the history
  • Loading branch information
dinushchathurya committed Jan 14, 2022
1 parent 78c1cd9 commit 5368de8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/auth/auth.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
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}`;
}

0 comments on commit 5368de8

Please sign in to comment.