chore: remove OAuth from chrome extension (#5528)

Since we can access the tokens directly from cookies of our front app,
we don't require the OAuth process to fetch tokens anymore
This commit is contained in:
Aditya Pimpalkar
2024-05-23 23:01:47 +01:00
committed by GitHub
parent fede721ba8
commit f9a3d5fd15
5 changed files with 194 additions and 205 deletions

View File

@ -2,10 +2,6 @@ import { defineManifest } from '@crxjs/vite-plugin';
import packageData from '../package.json';
const host_permissions =
process.env.VITE_MODE === 'development'
? ['https://www.linkedin.com/*', 'http://localhost:3001/*']
: ['https://www.linkedin.com/*'];
const external_sites =
process.env.VITE_MODE === 'development'
? [`https://app.twenty.com/*`, `http://localhost:3001/*`]
@ -48,9 +44,12 @@ export default defineManifest({
},
],
permissions: ['activeTab', 'storage', 'identity', 'sidePanel'],
permissions: ['activeTab', 'storage', 'identity', 'sidePanel', 'cookies'],
host_permissions: host_permissions,
// setting host permissions to all http connections will allow
// for people who host on their custom domain to get access to
// extension instead of white listing individual urls
host_permissions: ['https://*/*', 'http://*/*'],
externally_connectable: {
matches: external_sites,