Removed grant checks.

This commit is contained in:
Mike Cao 2025-09-22 13:57:42 -07:00
parent 48c7028a3a
commit 5c9f97182e
4 changed files with 9 additions and 32 deletions

View file

@ -21,7 +21,7 @@ export async function checkAuth(request: Request) {
const shareToken = await parseShareToken(request);
let user = null;
const { userId, authKey, grant } = payload || {};
const { userId, authKey } = payload || {};
if (userId) {
user = await getUser(userId);
@ -33,7 +33,7 @@ export async function checkAuth(request: Request) {
}
}
log({ token, shareToken, payload, user, grant });
log({ token, payload, authKey, shareToken, user });
if (!user?.id && !shareToken) {
log('User not authorized');
@ -45,11 +45,10 @@ export async function checkAuth(request: Request) {
}
return {
user,
grant,
token,
shareToken,
authKey,
shareToken,
user,
};
}