graphql-auth-transformer
Advanced tools
Comparing version 1.1.0-alpha.d9d538bd to 1.1.0-alpha.e0406dc1
@@ -118,3 +118,3 @@ "use strict"; | ||
_a[graphql_transformer_common_1.ResourceConstants.PARAMETERS.AuthCognitoUserPoolName] = new cloudform_1.StringParameter({ | ||
Description: 'The name of the AppSync API', | ||
Description: 'The name of the user pool.', | ||
Default: 'AppSyncUserPool' | ||
@@ -203,3 +203,2 @@ }), | ||
return new cognito_1.default.UserPool({ | ||
AliasAttributes: ['email'], | ||
UserPoolName: cloudform_1.Fn.Ref(graphql_transformer_common_1.ResourceConstants.PARAMETERS.AuthCognitoUserPoolName), | ||
@@ -216,2 +215,9 @@ Policies: { | ||
}, | ||
Schema: [ | ||
{ | ||
Name: 'email', | ||
Required: true, | ||
Mutable: true | ||
} | ||
], | ||
AutoVerifiedAttributes: ['email'] | ||
@@ -218,0 +224,0 @@ }).condition(graphql_transformer_common_1.ResourceConstants.CONDITIONS.AuthShouldCreateUserPool); |
{ | ||
"name": "graphql-auth-transformer", | ||
"version": "1.1.0-alpha.d9d538bd", | ||
"version": "1.1.0-alpha.e0406dc1", | ||
"description": "Implements the @auth directive for the appsync model transform.", | ||
@@ -21,5 +21,5 @@ "main": "lib/index.js", | ||
"graphql": "^0.13.2", | ||
"graphql-mapping-template": "^1.1.0-alpha.d9d538bd", | ||
"graphql-transformer-common": "^1.1.0-alpha.d9d538bd", | ||
"graphql-transformer-core": "^1.1.0-alpha.d9d538bd" | ||
"graphql-mapping-template": "^1.1.0-alpha.e0406dc1", | ||
"graphql-transformer-common": "^1.1.0-alpha.e0406dc1", | ||
"graphql-transformer-core": "^1.1.0-alpha.e0406dc1" | ||
}, | ||
@@ -30,4 +30,4 @@ "devDependencies": { | ||
"@types/node": "^10.3.4", | ||
"graphql-appsync-transformer": "^1.1.0-alpha.d9d538bd", | ||
"graphql-dynamodb-transformer": "^1.1.0-alpha.d9d538bd", | ||
"graphql-appsync-transformer": "^1.1.0-alpha.e0406dc1", | ||
"graphql-dynamodb-transformer": "^1.1.0-alpha.e0406dc1", | ||
"jest": "^23.1.0", | ||
@@ -34,0 +34,0 @@ "ts-jest": "^22.4.6", |
@@ -24,3 +24,3 @@ import Template from 'cloudform/types/template' | ||
[ResourceConstants.PARAMETERS.AuthCognitoUserPoolName]: new StringParameter({ | ||
Description: 'The name of the AppSync API', | ||
Description: 'The name of the user pool.', | ||
Default: 'AppSyncUserPool' | ||
@@ -136,3 +136,2 @@ }), | ||
return new Cognito.UserPool({ | ||
AliasAttributes: ['email'], | ||
UserPoolName: Fn.Ref(ResourceConstants.PARAMETERS.AuthCognitoUserPoolName), | ||
@@ -149,2 +148,9 @@ Policies: { | ||
}, | ||
Schema: [ | ||
{ | ||
Name: 'email', | ||
Required: true, | ||
Mutable: true | ||
} | ||
], | ||
AutoVerifiedAttributes: ['email'] | ||
@@ -151,0 +157,0 @@ }).condition(ResourceConstants.CONDITIONS.AuthShouldCreateUserPool) |
Sorry, the diff of this file is not supported yet
125163
1705