diff --git a/src/utils/server.ts b/src/utils/server.ts index 7e4346b..837cdd2 100644 --- a/src/utils/server.ts +++ b/src/utils/server.ts @@ -68,7 +68,7 @@ export const verifyLogtoToken = async (headers: Headers | string) => { // Expected audience token, the resource indicator of the current API audience: LOGTO_RESOURCE, } - ); + ).catch(() => ({ payload: {} })); // console.debug('Payload', payload); // Sub is the user ID, used for user identification return payload