audiobookshelf-app/middleware/authenticated.js
FabioMich66 fc946702c1
Some checks failed
Build APK / main (push) Has been cancelled
Build iOS / Build iOS simulator app (push) Has been cancelled
Verify all i18n files are alphabetized / update_translations (push) Has been cancelled
first commit
2026-10-03 13:38:18 +02:00

6 lines
No EOL
185 B
JavaScript

export default function ({ store, redirect, route }) {
// If the user is not authenticated
if (!store.state.user.user) {
return redirect(`/connect?redirect=${route.path}`)
}
}