summaryrefslogtreecommitdiff
path: root/src/api/authenticate.ts
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2017-01-06 12:30:35 +0900
committersyuilo <syuilotan@yahoo.co.jp>2017-01-06 12:30:35 +0900
commit89a3d6789cb1ed00b0082b6074fe59b3a8033464 (patch)
treec96c2416b055347826dcece2f27b90ee7cc268b8 /src/api/authenticate.ts
parentRefactor: Rename userkey --> access-token (diff)
downloadsharkey-89a3d6789cb1ed00b0082b6074fe59b3a8033464.tar.gz
sharkey-89a3d6789cb1ed00b0082b6074fe59b3a8033464.tar.bz2
sharkey-89a3d6789cb1ed00b0082b6074fe59b3a8033464.zip
[API] Improve: Better error message
Diffstat (limited to 'src/api/authenticate.ts')
-rw-r--r--src/api/authenticate.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/authenticate.ts b/src/api/authenticate.ts
index 2304acff21..6b70b0bfa8 100644
--- a/src/api/authenticate.ts
+++ b/src/api/authenticate.ts
@@ -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