Skip to content

Commit

Permalink
Merge branch 'hotfix/1.0.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
felixpy committed Dec 19, 2018
2 parents 025fbf8 + c8a0bc7 commit e5b2bcf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -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"
Expand Down Expand Up @@ -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"
}

0 comments on commit e5b2bcf

Please sign in to comment.