Skip to content
This repository was archived by the owner on Aug 17, 2025. It is now read-only.
This repository was archived by the owner on Aug 17, 2025. It is now read-only.

protectedPaths not protecting routes with hyphens #67

@GodTamIt

Description

@GodTamIt

It seems that protectedRoutes does not seem to work with routes that contain hyphens.

For example, this seems to protect the /create route:

export const handle: Handle = sequence(
	handleClerk(CLERK_SECRET_KEY, {
		debug: true,
		protectedPaths: ['/create'],
		signInUrl: '/sign-in'
	})
);

However, this fails to protect the /create-entity route:

export const handle: Handle = sequence(
	handleClerk(CLERK_SECRET_KEY, {
		debug: true,
		protectedPaths: ['/create-entity'],
		signInUrl: '/sign-in'
	})
);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions