aws-cognito-redux-saga-refact
Advanced tools
Comparing version
{ | ||
"name": "aws-cognito-redux-saga-refact", | ||
"version": "1.5.15", | ||
"version": "1.5.16", | ||
"description": "Redux Saga AWS Cognito Library", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
@@ -90,2 +90,4 @@ import * as auth from 'aws-cognito-promises-refact' | ||
function* signIn(action) { | ||
let user = null; | ||
let session = null; | ||
try { | ||
@@ -98,4 +100,4 @@ const { username, password, code } = action.payload | ||
yield call(auth.signIn, username, password) | ||
let user = auth.config.getUser() | ||
let session = yield call(auth.getSession) | ||
user = auth.config.getUser() | ||
session = yield call(auth.getSession) | ||
@@ -112,2 +114,4 @@ yield put({ | ||
if (e.code === 'UserNotConfirmedException') { | ||
console.log(user) | ||
console.log(session) | ||
yield put({ | ||
@@ -114,0 +118,0 @@ type: actions.AUTH_SET_STATE, |
Sorry, the diff of this file is too big to display
305083
0.04%748
0.54%