File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change 77 SignInResult ,
88 Stack ,
99} from '@/types/auth'
10- import { safeStorage , shell } from 'electron'
10+ import { shell } from 'electron'
1111import { waitFor } from '../utils'
1212import { fetchPersonalToken } from '@/services/k6'
1313import { 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 ,
You can’t perform that action at this time.
0 commit comments