mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-08-18 01:19:49 +02:00
Set up the PAT settings view
This commit is contained in:
20
resources/js_vue3/services/userService.js
vendored
20
resources/js_vue3/services/userService.js
vendored
@@ -36,5 +36,25 @@ export default {
|
||||
revokeWebauthnDevice(credentialId, config = {}) {
|
||||
return webClient.delete('/webauthn/credentials/' + credentialId, {...config})
|
||||
},
|
||||
|
||||
/**
|
||||
* Get all user PATs
|
||||
*
|
||||
* @param {*} config
|
||||
* @returns
|
||||
*/
|
||||
getPersonalAccessTokens(config = {}) {
|
||||
return webClient.get('/oauth/personal-access-tokens', {...config})
|
||||
},
|
||||
|
||||
/**
|
||||
* Delete a user PAT
|
||||
*
|
||||
* @param {*} tokenId
|
||||
* @returns
|
||||
*/
|
||||
deletePersonalAccessToken(tokenId, config = {}) {
|
||||
return webClient.delete('/oauth/personal-access-tokens/' + tokenId, {...config})
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user