Fixed share page issue.
This commit is contained in:
1 parent
fc879bbb7d
commit
2290be7ca4
5 files changed
+13
-16
No files matched your search
+1
-1
@@ -29,7 +29,7 @@ export const useAuth = createMiddleware(async (req, res, next) => {
|
||||
const token = await getAuthToken(req);
|
||||
const shareToken = await getShareToken(req);
|
||||
|
||||
if (!token) {
|
||||
if (!token && !shareToken) {
|
||||
return unauthorized(res);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user