(router: NextRouter)
| 76 | } |
| 77 | |
| 78 | export const redirectToApp = async (router: NextRouter) => { |
| 79 | const params = new URLSearchParams(window.location.search); |
| 80 | const afterAuth = params.get(AFTER_AUTH_PARAM); |
| 81 | params.delete(AFTER_AUTH_PARAM); |
| 82 | params.delete('id'); |
| 83 | params.delete('stepId'); |
| 84 | await router.replace(getPathnameWithQuery(afterAuth || '/', params)); |
| 85 | }; |
no test coverage detected