Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact 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

fix(PN-11250): redirect to selfcare after saving aar in localStorage #1224

Merged
merged 14 commits into from
Jul 2, 2024

Conversation

SarahDonvito
Copy link
Contributor

@SarahDonvito SarahDonvito commented May 27, 2024

Short description

Redirected to selfcare after saving aar and session token in storage when user looks for login.

List of changes proposed in this pull request

  • Check if inactivityTimer before initialize inactivity listener
  • Save aar token in localStorage in RouteGuard for PF and PG
  • Refactor SessionGuard for PF and PG, adding condition if user is anonimous

How to test

Login as PF through https://cittadini.dev.notifichedigitali.it/?aar=WktSVC1EWVJOLU5WUkstMjAyNDA2LVktMV9QRi1kZmEyZDdmNC03YzFlLTRmZWYtYmUzMC02MGVhZDc4NmU3MGZfMWYxZGVkYmUtN2MzZC00YTAwLTg5OGEtNzc4MzAyM2M4YjM5; check after login you are redirect to notification;

Login as PG through https://imprese.dev.notifichedigitali.it/?aar=V1lHUC1XWVJBLU5VTUUtMjAyNDA1LVEtMV9QRy04ZmFkMGQwNy1iMTlhLTQ3YmMtOWQ2Ni1jNjllOWIxODIwZWRfYjgzNjI2MGUtYzU0NC00YTJmLTkyYzQtNWM5N2M4ZWI4MzZj; check after login you are redirect to notification;

@AndreaCimini90 AndreaCimini90 self-assigned this May 27, 2024
@SarahDonvito SarahDonvito marked this pull request as ready for review June 14, 2024 14:50
@SarahDonvito SarahDonvito requested review from ZorbaDimatteo and a team as code owners June 14, 2024 14:50
@AndreaCimini90 AndreaCimini90 self-requested a review June 17, 2024 16:18
@AndreaCimini90 AndreaCimini90 marked this pull request as draft June 18, 2024 10:00
@AndreaCimini90 AndreaCimini90 marked this pull request as ready for review July 2, 2024 07:25
@AndreaCimini90 AndreaCimini90 merged commit ba3d75a into develop Jul 2, 2024
5 checks passed
@AndreaCimini90 AndreaCimini90 deleted the fix/PN-11250 branch July 2, 2024 07:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants