mirror of
https://github.com/zhom/donutbrowser.git
synced 2026-06-09 00:13:56 +02:00
refactor: better error handling
This commit is contained in:
@@ -61,8 +61,10 @@ export class AuthGuard implements CanActivate {
|
||||
profileLimit: decoded.profileLimit || 0,
|
||||
} satisfies UserContext;
|
||||
return true;
|
||||
} catch {
|
||||
// JWT verification failed — fall through to error
|
||||
} catch (err) {
|
||||
this.logger.warn(
|
||||
`JWT verification failed: ${err instanceof Error ? err.message : err}`,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user