[API] Improve: Better error message

This commit is contained in:
syuilo 2017-01-06 12:30:35 +09:00
parent a9b0204299
commit 77358e1ca3
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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