Move login to oauth.
This commit is contained in:
parent
7f0e140a4f
commit
9af204b293
12 changed files with 1332 additions and 243 deletions
18
src/modules/oauth.js
Normal file
18
src/modules/oauth.js
Normal file
|
@ -0,0 +1,18 @@
|
|||
const oauth = {
|
||||
state: {
|
||||
client_id: false,
|
||||
client_secret: false,
|
||||
token: false
|
||||
},
|
||||
mutations: {
|
||||
setClientData (state, data) {
|
||||
state.client_id = data.client_id
|
||||
state.client_secret = data.client_secret
|
||||
},
|
||||
setToken (state, token) {
|
||||
state.token = token
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export default oauth
|
Loading…
Add table
Add a link
Reference in a new issue