(path: string | null | undefined)
| 22 | |
| 23 | /** The validated returnTo, or null when absent/unsafe. */ |
| 24 | export const safeReturnTo = (path: string | null | undefined): string | null => |
| 25 | path && isSafeReturnTo(path) ? path : null; |
| 26 | |
| 27 | /** The /login URL that comes back to `returnTo` ("/" needs no parameter). */ |
| 28 | export const loginPath = (returnTo: string): string => |
no test coverage detected