plumber filter auth causes swagger to fail

Don't apply your filter on swagger routes

if (!req$PATH_INFO %in% c("/__docs__/", "/__swagger__/", "/openapi.json") {
 # filter
} else {
# nofilter
}

Or something similar

3 Likes