mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-02-16 10:42:08 +00:00
begin extracting user controllers out of routes
This commit is contained in:
@@ -15,7 +15,7 @@ export const verifyConfirmationToken = async (token: string) => {
|
||||
const parsed = BasicUserInfoSchema.safeParse(decoded);
|
||||
|
||||
if (!parsed.success) {
|
||||
throw new Error('Invalid token');
|
||||
throw new ServerError('Invalid token.', 401);
|
||||
}
|
||||
|
||||
return parsed.data;
|
||||
|
||||
Reference in New Issue
Block a user