Fixed share page issue.

This commit is contained in:
Mike Cao 2022-10-24 19:48:10 -07:00
parent fc879bbb7d
commit 2290be7ca4
5 changed files with 13 additions and 16 deletions

View file

@ -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);
}