inner activator

This commit is contained in:
Jan Prochazka 2024-07-30 10:23:14 +02:00
parent f39b3dd347
commit 53ee6eacb2
2 changed files with 10 additions and 0 deletions

View File

@ -23,6 +23,8 @@ function unauthorizedResponse(req, res, text) {
function authMiddleware(req, res, next) { function authMiddleware(req, res, next) {
const SKIP_AUTH_PATHS = ['/config/get', '/auth/oauth-token', '/auth/login', '/stream']; const SKIP_AUTH_PATHS = ['/config/get', '/auth/oauth-token', '/auth/login', '/stream'];
// console.log('********************* getAuthProvider()', getAuthProvider());
if (!getAuthProvider().shouldAuthorizeApi()) { if (!getAuthProvider().shouldAuthorizeApi()) {
return next(); return next();
} }

View File

@ -0,0 +1,8 @@
<script lang="ts">
import createActivator from './createActivator';
export let name;
export let activateOnTabVisible = false;
export const activator = createActivator(name, activateOnTabVisible);
</script>