Skip to content

Use `withAuthenticatedUser` for insight router

Warren Gifford requested to merge code-insights/use-auth-hoc into main

Created by: vovakulikov

Closes https://github.com/sourcegraph/sourcegraph/issues/21073

A few pages within the insight routes area require an authUser object. But naturally we can have authUser with null value (logged out user)

To avoid manually check into insights pages this PR adds one root check with withAuthenticatedUser hoc

Merge request reports

Loading