8000 [FEATURE] Show User Details when session data is not expired (Conditional Rendering) · Issue #44 · sristy17/MindDrive · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[FEATURE] Show User Details when session data is not expired (Conditional Rendering) #44

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and co 8000 ntact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 task done
pooranjoyb opened this issue Oct 5, 2024 · 3 comments · Fixed by #46
Closed
1 task done
Assignees
Labels
hacktoberfest label for hacktoberfest 2024 hacktoberfest-2024 label for hacktoberfest 2024

Comments

@pooranjoyb
Copy link
Collaborator

Is this a unique feature?

  • I have checked "open" AND "closed" issues and this is not a duplicate

Is your feature request related to a problem/unavailable functionality? Please describe.

Currently whenever we click on Profile/Avatar we are again redirected to Auth Page, whether or not we are logged in or not.

This is a serious bug we should take care of.

Proposed Solution

Tasks :

  • When user logs in, save the user data in local storage
  • You can see the session created when the user logs in, with an expiry time/date.
  • After redirection to Home Page on Login, If I click the avatar button again, I shouldn't see Auth Screen as I am already logged in.
  • Instead we need to show the logged in user details.
  • Use Conditional Rendering to show userdata/auth-page. Based on the availability of session-data and user-data.

Screenshots

No response

Do you want to work on this issue?

No

If "yes" to above, please explain how you would technically implement this

No response

@pooranjoyb pooranjoyb added hacktoberfest-2024 label for hacktoberfest 2024 hacktoberfest label for hacktoberfest 2024 labels Oct 5, 2024
@RonakSurana-2001
Copy link
Contributor

Can I work on this issue

@pooranjoyb
Copy link
Collaborator Author

Go for it. @RonakSurana-2001

@RonakSurana-2001
Copy link
Contributor

I have opened a PR #46
Kindly Review it

@pooranjoyb pooranjoyb linked a pull request Oct 7, 2024 that will close this issue
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest label for hacktoberfest 2024 hacktoberfest-2024 label for hacktoberfest 2024
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants
0