Logo
Explore Help
Sign In
1berry/Hemmelig.app
1
0
Fork 0
You've already forked Hemmelig.app
Code Issues Packages Projects Releases Wiki Activity
Hemmelig.app/client/util/constants.js

3 lines
96 B
JavaScript
Raw Normal View History

feat: leverage redux store to preserve the token on userLogin action instead of having component level state Previously, the login token was handled in the component level state on sign-in and sign-up which was repeated logic and also the sign-in/sign-out has less flexibility due to the component level state. Now, the token is stored in the global redux store on sign-up/sign-in actions and users can be logged out from anywhere else within the application
2022-10-05 13:41:06 +05:30
export const USER_LOGIN_CHANGED = 'USER_LOGIN_CHANGED';
export const USER_LOGIN = 'USER_LOGIN';
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 442ms Template: 4ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API