I'm using React + Redux + React Router for an app. My initial page is a login screen and once authentication is successful, would like to redirect to another page while passing the token retrieved from authentication. I'm looking at this SO question but does not show how to pass a value into the new page: React Router Redirect
I'm thinking of taking Dan's advice of sticking the redirect in the action creator (for a successful login) but just not sure how to pass the token back as well. This is my action creator:
export const loginSucceeded = token => {
browserHistory.push('/dashboard')
}