(path: string)
| 14 | const pathPart = (path: string): string => path.split(/[?#]/, 1)[0] ?? ""; |
| 15 | |
| 16 | const isOAuthCallbackReturnTo = (path: string): boolean => pathPart(path) === "/api/oauth/callback"; |
| 17 | |
| 18 | export const isSafeReturnTo = (path: string): boolean => |
| 19 | path.startsWith("/") && |
no test coverage detected