mirror of
https://github.com/documenso/documenso.git
synced 2025-11-13 16:23:06 +10:00
bugfix 401 redirect
This commit is contained in:
@ -12,7 +12,7 @@ export async function getUserFromToken(
|
|||||||
const tokenEmail = token?.email?.toString();
|
const tokenEmail = token?.email?.toString();
|
||||||
|
|
||||||
if (!token) {
|
if (!token) {
|
||||||
if (res) res.status(401).send("No session token found for request.");
|
if (res.status) res.status(401).send("No session token found for request.");
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user