Revoke token when logging out (#7493)
* Revoke token when logging out * extract OAUTH2_DEVICE_CLIENT_ID * Update snapshots * Update snapshots * try fix * try fix * Move client id to `@src/lib/constants` --------- Co-authored-by: Jonathan Tran <jonnytran@gmail.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Pierre Jacquier <pierrejacquier39@gmail.com> Co-authored-by: Pierre Jacquier <pierre@zoo.dev>
This commit is contained in:
@ -28,7 +28,10 @@ import {
|
||||
parseCLIArgs,
|
||||
} from '@src/commandLineArgs'
|
||||
import { initPromiseNode } from '@src/lang/wasmUtilsNode'
|
||||
import { ZOO_STUDIO_PROTOCOL } from '@src/lib/constants'
|
||||
import {
|
||||
ZOO_STUDIO_PROTOCOL,
|
||||
OAUTH2_DEVICE_CLIENT_ID,
|
||||
} from '@src/lib/constants'
|
||||
import getCurrentProjectFile from '@src/lib/getCurrentProjectFile'
|
||||
import { reportRejection } from '@src/lib/trap'
|
||||
import {
|
||||
@ -402,7 +405,7 @@ ipcMain.handle('startDeviceFlow', async (_, host: string) => {
|
||||
// We can hardcode the client ID.
|
||||
// This value is safe to be embedded in version control.
|
||||
// This is the client ID of the KittyCAD app.
|
||||
client_id: '2af127fb-e14e-400a-9c57-a9ed08d1a5b7',
|
||||
client_id: OAUTH2_DEVICE_CLIENT_ID,
|
||||
token_endpoint_auth_method: 'none',
|
||||
})
|
||||
|
||||
|
Reference in New Issue
Block a user