Skip to content

Commit

Permalink
Update 06-token-authentication.md
Browse files Browse the repository at this point in the history
Assign token , The code has an additional curly bracket.
  • Loading branch information
Haoyue-zhi authored Dec 16, 2024
1 parent 3ea1216 commit c7bffb8
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 c7bffb8

Please sign in to comment.