Skip to content
This repository has been archived by the owner on Jan 1, 2024. It is now read-only.

Commit

Permalink
feat(actions): pass meta to LOGIN_AUTH_SUCCESS
Browse files Browse the repository at this point in the history
feat(actions): pass `meta` to LOGIN_AUTH_SUCCESS
  • Loading branch information
Metnew committed Dec 5, 2017
1 parent 50ba267 commit e2de72f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common/actions/auth/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ export type LOGOUT_AUTH_SUCCESS_TYPE = {type: 'LOGOUT_AUTH_SUCCESS'}
{@link https://github.com/Metnew/awral}
*/
const awralLogin = awral.of({
success ({payload, dispatch}) {
success ({payload, dispatch, meta}) {
setLocalToken(payload.token)
dispatch({type: LOGIN_AUTH_SUCCESS, payload})
dispatch({type: LOGIN_AUTH_SUCCESS, payload, meta})
}
})

Expand Down

0 comments on commit e2de72f

Please sign in to comment.