auth: added login through vk iframe

This commit is contained in:
muerwre 2018-12-10 13:01:30 +07:00
parent 9427866e60
commit c2e13ba4fd

View file

@ -106,6 +106,8 @@ function* vkIframeAuth({ viewer_id, access_token }) {
const user = yield call(getVkIframeUser, { viewer_id, access_token }); const user = yield call(getVkIframeUser, { viewer_id, access_token });
if (user) return yield put(setUser(user)); if (user) return yield put(setUser(user));
return null;
} }
function* mapInitSaga() { function* mapInitSaga() {