diff --git a/README.md b/README.md index d5bf0e9..ecebf0d 100644 --- a/README.md +++ b/README.md @@ -59,7 +59,7 @@ const md5Value = hash.update(`${APP_CODE}:${ts}:${APP_SECRET}`).digest('hex'); const token = Buffer.from(`${APP_CODE}:${ts}:${md5Value}`).toString('base64'); -axios.get('/', { +axios.get('/url/to/your/egg/service', { headers: { 'egg-api-token': token } diff --git a/package.json b/package.json index eee3538..35a3fd0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "egg-token", - "version": "1.0.1", + "version": "1.0.2", "description": "Egg.js middleware that uses encrypted token to authenticate.", "eggPlugin": { "name": "token" @@ -47,12 +47,12 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/eggjs/egg-token.git" + "url": "git+https://github.com/codetrial/egg-token.git" }, "bugs": { - "url": "https://github.com/eggjs/egg/issues" + "url": "https://github.com/codetrial/egg/issues" }, - "homepage": "https://github.com/eggjs/egg-token#readme", + "homepage": "https://github.com/codetrial/egg-token#readme", "author": "felixpy", "license": "MIT" }