feat: add revoke token button

This commit is contained in:
Sérgio Salgado 2020-10-22 11:24:00 +01:00 committed by Josh Harvey
parent 4b44e1ef97
commit c4e7547c45
4 changed files with 58 additions and 65 deletions

View file

@ -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)
}
}