Skip to content

Commit

Permalink
FR-16009 - support impersontaion
Browse files Browse the repository at this point in the history
  • Loading branch information
yuvalotem1 committed Apr 10, 2024
1 parent 0ac7584 commit a64a4b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/nextjs/src/api/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export const parseHttpResponse = async <T>(res: Response): Promise<T | undefined
*/
export function isMiddlewarePath(path: string): boolean {
let isAuthPath =
fronteggAuthApiRoutesRegex.find((pathRegex) => {
[...fronteggAuthApiRoutesRegex, /^\/identity\/resources\/impersonation\/v[0-9]$/g].find((pathRegex) => {
if (typeof pathRegex === 'string') {
return pathRegex === path;
} else {
Expand Down

0 comments on commit a64a4b3

Please sign in to comment.