Created
June 8, 2020 08:07
-
-
Save jacobdo2/14753cd584c480308b030f484b3bd4a6 to your computer and use it in GitHub Desktop.
auth.config.ts content
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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