make sure email is verified before setting auth token header
This commit is contained in:
parent
8068279b5e
commit
36044b9e03
1 changed files with 1 additions and 1 deletions
|
@ -162,7 +162,7 @@ const sharedStateCb = ({ dispatch, getState }) => {
|
|||
|
||||
const populateAuthTokenHeader = () => {
|
||||
return next => action => {
|
||||
if (action.type === LBRYINC_ACTIONS.AUTHENTICATION_SUCCESS) {
|
||||
if (action.type === LBRYINC_ACTIONS.USER_FETCH_SUCCESS && action.data.user.has_verified_email === true) {
|
||||
const authToken = getAuthToken();
|
||||
Lbry.setApiHeader(X_LBRY_AUTH_TOKEN, authToken);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue