mirror of
https://github.com/Bubka/2FAuth.git
synced 2024-12-02 21:26:42 +01:00
2 lines
587 B
JavaScript
Vendored
2 lines
587 B
JavaScript
Vendored
import{a1 as n}from"./app-347ef106.js";/*! 2FAuth version 5.0.3 - Copyright (c) 2023 Bubka - https://github.com/Bubka/2FAuth */const a=n("api"),r=n("web"),o={updatePreference(e,t,s={}){return a.put("/user/preferences/"+e,{value:t},{...s})},getWebauthnDevices(e={}){return r.get("/webauthn/credentials",{...e})},revokeWebauthnDevice(e,t={}){return r.delete("/webauthn/credentials/"+e,{...t})},getPersonalAccessTokens(e={}){return r.get("/oauth/personal-access-tokens",{...e})},deletePersonalAccessToken(e,t={}){return r.delete("/oauth/personal-access-tokens/"+e,{...t})}};export{o as u};
|