feat: add revoke token button
This commit is contained in:
parent
4b44e1ef97
commit
c4e7547c45
4 changed files with 58 additions and 65 deletions
|
|
@ -243,6 +243,7 @@ const typeDefs = gql`
|
|||
saveConfig(config: JSONObject): JSONObject
|
||||
createPairingTotem(name: String!): String
|
||||
saveAccounts(accounts: JSONObject): JSONObject
|
||||
revokeToken(token: String!): UserToken
|
||||
}
|
||||
`
|
||||
|
||||
|
|
@ -293,7 +294,8 @@ const resolvers = {
|
|||
.then(it => {
|
||||
notify()
|
||||
return it
|
||||
})
|
||||
}),
|
||||
revokeToken: (...[, { token }]) => tokenManager.revokeToken(token)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue