1 | import { CognitoUserPool, ICognitoUserPoolData } from 'amazon-cognito-identity-js'
|
2 | export const Pool = new CognitoUserPool(_pool_data())
|
3 | export function _pool_data() {
|
4 | return {
|
5 | UserPoolId: process.env.COGNITO_USER_POOL_ID,
|
6 | ClientId: process.env.COGNITO_APP_CLIENT_ID,
|
7 | } as ICognitoUserPoolData
|
8 | }
|
9 | export const _data__pool = _pool_data
|