mirror of
https://github.com/umami-software/umami.git
synced 2026-02-11 16:17:13 +01:00
Removed grant checks.
This commit is contained in:
parent
48c7028a3a
commit
5c9f97182e
4 changed files with 9 additions and 32 deletions
|
|
@ -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,
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue