We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 42882ef + 6cd2ab5 commit 3908563Copy full SHA for 3908563
lib/schemes/local.js
@@ -9,7 +9,7 @@ export default class LocalScheme {
9
_setToken (token) {
10
if (this.options.globalToken) {
11
// Set Authorization token for all axios requests
12
- this.$auth.ctx.app.$axios.setToken(token, this.options.tokenType)
+ this.$auth.ctx.app.$axios.setToken(token)
13
}
14
15
test/module.test.js
@@ -53,6 +53,8 @@ describe('auth', () => {
53
})
54
55
expect(axiosBearer).toBeDefined()
56
+ expect(axiosBearer.split(' ')).toHaveLength(2)
57
+ expect(axiosBearer.split(' ')[0]).toMatch(/^Bearer$/i)
58
expect(token).toBeDefined()
59
expect(user).toBeDefined()
60
expect(user.username).toBe('test_username')
0 commit comments