Skip to content

Instantly share code, notes, and snippets.

@OleksivO

OleksivO/post.js

Created Jan 16, 2019
Embed
What would you like to do?
the description for this gist
// same logic implemented with setTimeout()
export const checkAuthTimeout = (expirationTime) => {
return dispatch => {
setTimeout(() => {
dispatch(logout())
}, expirationTime * 1000)
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.