-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: [IOPID-2160] Delete local and remote FF of session refresh (#6255
) ## Short description Delete local and remote FF of session refresh ## List of changes proposed in this pull request - Delete local feature flag to activate session refresh - Delete remote feature flag to activate session refresh - fix: Add logic to control if FL is active in `ts/sagas/startup/watchApplicationActivitySaga.ts` ## Demo > [!Note] > in order to speed up the testing process I replaced the `backgroundActivityTimeout` field with 10 so that the functionality is activated after 10 seconds of background and not after 2 minutes <p> | Local Flow with fast login active | Local Flow with fast login not active | Production flow with fast login active | Production flow with fast login not active | | - | - | - | - | | <video src="https://github.com/user-attachments/assets/cd4ef2b3-a807-47df-8a92-1f5150cc9009"/> | <video src="https://github.com/user-attachments/assets/240232af-8be3-4d3c-87a2-0966274e1652"/> | <video src="https://github.com/user-attachments/assets/acd0efe2-dcf1-441a-9d58-7f681b2fee88"/> | <video src="https://github.com/user-attachments/assets/102965d8-b6d8-44ac-9b0e-2df553d44416"/> | </p> ## How to test **NB**: in order to speed up the testing process at [this line](https://github.com/pagopa/io-app/blob/01481f800f15c6322d8b9ec8ccddb471bedf6615/ts/sagas/startup/watchApplicationActivitySaga.ts#L21) you can replace the `backgroundActivityTimeout` const with '10' so that the functionality is activated after 10 seconds of background and not after 2 minutes > [!Note] > if you have decided to test the flow with the fast login active, the session refresh will be active, otherwise not Run the application and put the application in the background for at least 2 minutes. When you put it back in foreground the application will be shown the screen to identify you and the token will be refreshed.
- Loading branch information
Showing
6 changed files
with
40 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,9 @@ | ||
import { ActionType, createStandardAction } from "typesafe-actions"; | ||
|
||
export const setAutomaticSessionRefresh = createStandardAction( | ||
"SET_AUTOMATIC_SESSION_REFRESH_AFTER_TWO_MIN_BACKGROUND" | ||
)<{ enabled: boolean | undefined }>(); | ||
|
||
export const areTwoMinElapsedFromLastActivity = createStandardAction( | ||
"ARE_TWO_MINUTES_ELAPSED_FROM_LAST_ACTIVITY" | ||
)<{ hasTwoMinPassed: boolean }>(); | ||
|
||
export type automaticSessionRefreshActions = ActionType< | ||
typeof setAutomaticSessionRefresh | typeof areTwoMinElapsedFromLastActivity | ||
typeof areTwoMinElapsedFromLastActivity | ||
>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters