absmach / magistrala-ui

UI Repository for Magistrala IoT
10 stars 17 forks source link

NOISSUE - Update session management #187

Closed ianmuchyri closed 7 months ago

ianmuchyri commented 7 months ago

What type of PR is this?

What does this do?

Updates the session management allowing a user to log in/register either using Magistrala UI or an external provider. The user is then redirected to the domains page with the access and refresh token stored in the cookies. When a user then selects which domain they want to join, the UI acquires new domain tokens and updates the cookies in the browser. Furthermore, we introduce a session cookie that saves the user details in the browser. The stored cookies will be secured in the PR addressing issue #182

Which issue(s) does this PR fix/relate to?

NOISSUE

Have you included tests for your changes?

Did you document any new/modified functionality?

Notes