Skip to content
Snippets Groups Projects
Commit 89a3d678 authored by syuilo's avatar syuilo
Browse files

[API] Improve: Better error message

parent fef3d3f3
No related merge requests found
......@@ -47,7 +47,7 @@ export default (req: express.Request) => new Promise<IAuthContext>(async (resolv
});
if (accessToken === null) {
return reject('invalid token');
return reject('invalid signature');
}
const app = await App
......
......@@ -68,7 +68,7 @@ function authenticate(connection: websocket.connection, token: string): Promise<
});
if (accessToken == null) {
return reject('invalid token');
return reject('invalid signature');
}
// Fetch user
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment