auth-n-roll-service-cognito
Advanced tools
Comparing version 0.0.5 to 0.0.8
@@ -19,3 +19,3 @@ "use strict"; | ||
code: _authNRoll.VALIDATION_DATA_ERROR, | ||
message: 'Username and password required' | ||
message: 'SIGNIN_VALIDATION_DATA_ERROR' | ||
}; | ||
@@ -45,3 +45,3 @@ } | ||
code: _authNRoll.USER_NOT_FOUND_ERROR, | ||
message: err.message, | ||
message: 'SIGNIN_USER_NOT_FOUND_ERROR', | ||
user: { | ||
@@ -55,3 +55,3 @@ username: username | ||
code: _authNRoll.NOT_AUTHORIZED_ERROR, | ||
message: err.message, | ||
message: 'SIGNIN_NOT_AUTHORIZED_ERROR', | ||
user: { | ||
@@ -65,3 +65,3 @@ username: username | ||
code: _authNRoll.USER_NOT_CONFIRMED_ERROR, | ||
message: err.message, | ||
message: 'SIGNIN_USER_NOT_CONFIRMED_ERROR', | ||
user: { | ||
@@ -68,0 +68,0 @@ username: username |
{ | ||
"name": "auth-n-roll-service-cognito", | ||
"version": "0.0.5", | ||
"version": "0.0.8", | ||
"description": "", | ||
@@ -16,3 +16,3 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"auth-n-roll": "^0.0.5", | ||
"auth-n-roll": "^0.0.8", | ||
"aws-sdk": "^2.254.1" | ||
@@ -19,0 +19,0 @@ }, |
# Auth-n-roll service Cognito | ||
***This module is a WIP don't use in a production environment*** | ||
This service implements the connection to the Aws Cognito Authentication provider. | ||
It implements the service interface required by `auth-n-roll` | ||
* [Service](../auth-n-roll/docs/service.md) - The service provides the connection with the server | ||
## How to use it | ||
``` | ||
import { ServiceCognito } from 'auth-n-roll-service-cognito' | ||
const awsStackData = { | ||
UserPoolClientId: 'A Key here', | ||
UserPoolId: 'eu-west-1_some user pool id', | ||
IdentityPoolId: 'the pool id', | ||
Region: 'eu-west-1' | ||
} | ||
const cognitoService = ServiceCognito(awsStackData) | ||
... | ||
<AuthNRollProvider authService={cognitoService}> | ||
.... | ||
</AuthNRollProvider> | ||
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12247
32
+ Addedauth-n-roll@0.0.8(transitive)
+ Addedsprintf@0.1.5(transitive)
+ Addedsprintf-js@1.1.3(transitive)
- Removedauth-n-roll@0.0.5(transitive)
Updatedauth-n-roll@^0.0.8