test upload file to server
This commit is contained in:
parent
16e0e4f9d8
commit
aaa60216b2
43 changed files with 1814 additions and 285 deletions
|
|
@ -26,7 +26,7 @@ export default function (
|
|||
picture: params.get('picture'),
|
||||
permissions: params.get('permissions'),
|
||||
access_token: params.get('access_token'),
|
||||
max_age: params.get('max_age'),
|
||||
max_age: params.get('access_token_max_age'),
|
||||
refresh_token: params.get('refresh_token')
|
||||
})
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { findCredentials, getPassword, setPassword } from '@postman/node-keytar'
|
||||
import { findCredentials, getPassword, setPassword, deletePassword } from '@postman/node-keytar'
|
||||
|
||||
export function eventGetKeyChain(icpMain: Electron.IpcMain) {
|
||||
icpMain.on('get-keyChain', (event, serviceName, account) => {
|
||||
|
|
@ -7,12 +7,12 @@ export function eventGetKeyChain(icpMain: Electron.IpcMain) {
|
|||
})
|
||||
})
|
||||
|
||||
icpMain.on('set-keyChain', (_event, serviceName, account, password) => {
|
||||
icpMain.on('set-keyChain', (_event, { serviceName, account, password }) => {
|
||||
setPassword(serviceName, account, password)
|
||||
})
|
||||
|
||||
icpMain.on('delete-keyChain', (_event, serviceName, account) => {
|
||||
setPassword(serviceName, account, '')
|
||||
icpMain.on('delete-keyChain', (_event, { serviceName, account }) => {
|
||||
deletePassword(serviceName, account)
|
||||
})
|
||||
|
||||
icpMain.handle('keyChainSync', async (_event, serviceName) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue