Skip to content

Commit

Permalink
Merge pull request #58 from Haoyue-zhi/patch-1
Browse files Browse the repository at this point in the history
Update 06-token-authentication.md
  • Loading branch information
JOU-amjs authored Dec 17, 2024
2 parents 3ea1216 + c7bffb8 commit 97298fe
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -296,8 +296,8 @@ Usually, we will append token to the request information in `beforeRequest`. The
```javascript
createClientTokenAuthentication({
assignToken: method => {
method.config.headers.Authorization = localStorage.getItem('token')};
}
method.config.headers.Authorization = localStorage.getItem('token')
},
});
```

Expand Down

0 comments on commit 97298fe

Please sign in to comment.