Skip to content

Commit 7870009

Browse files
authored
internal: Fixed requests to access secrets. (#536)
1 parent 5f0bb58 commit 7870009

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/handlers/auth/states.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
SignInResult,
88
Stack,
99
} from '@/types/auth'
10-
import { safeStorage, shell } from 'electron'
10+
import { shell } from 'electron'
1111
import { waitFor } from '../utils'
1212
import { fetchPersonalToken } from '@/services/k6'
1313
import { getProfileData, saveProfileData } from './fs'
@@ -243,10 +243,6 @@ export class SignInStateMachine extends EventEmitter<StateEventMap> {
243243
}
244244
}
245245

246-
const encryptedToken = safeStorage
247-
.encryptString(apiTokenResponse.token)
248-
.toString('base64')
249-
250246
const profileData = await getProfileData()
251247

252248
const stackInfo: StackInfo = {
@@ -263,7 +259,7 @@ export class SignInStateMachine extends EventEmitter<StateEventMap> {
263259
version: '1.0',
264260
tokens: {
265261
...profileData.tokens,
266-
[stack.id]: encryptedToken,
262+
[stack.id]: apiTokenResponse.token,
267263
},
268264
profiles: {
269265
...profileData.profiles,

0 commit comments

Comments
 (0)