diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-03-09 03:50:09 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-03-09 03:50:09 +0900 |
| commit | 31f36fa618e02bab9776a943366167e1009ede48 (patch) | |
| tree | 386dbaa963b3695f6a0febf9b5076e8d42006536 /src/api/endpoints/auth/accept.ts | |
| parent | Merge pull request #237 from syuilo/greenkeeper/cafy-1.2.0 (diff) | |
| download | misskey-31f36fa618e02bab9776a943366167e1009ede48.tar.gz misskey-31f36fa618e02bab9776a943366167e1009ede48.tar.bz2 misskey-31f36fa618e02bab9776a943366167e1009ede48.zip | |
:v:
Diffstat (limited to 'src/api/endpoints/auth/accept.ts')
| -rw-r--r-- | src/api/endpoints/auth/accept.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/api/endpoints/auth/accept.ts b/src/api/endpoints/auth/accept.ts index fc74979bb3..4ee20a6d25 100644 --- a/src/api/endpoints/auth/accept.ts +++ b/src/api/endpoints/auth/accept.ts @@ -3,7 +3,7 @@ */ import rndstr from 'rndstr'; const crypto = require('crypto'); -import it from 'cafy'; +import $ from 'cafy'; import App from '../../models/app'; import AuthSess from '../../models/auth-session'; import AccessToken from '../../models/access-token'; @@ -40,7 +40,7 @@ import AccessToken from '../../models/access-token'; */ module.exports = (params, user) => new Promise(async (res, rej) => { // Get 'token' parameter - const [token, tokenErr] = it(params.token).expect.string().required().get(); + const [token, tokenErr] = $(params.token).string().$; if (tokenErr) return rej('invalid token param'); // Fetch token |