Merge pull request #368 from TomasHubelbauer/patch-1
Mention TokenCache in the own browser usage section
This commit is contained in:
commit
cb689336d8
1 changed files with 4 additions and 10 deletions
10
README.md
10
README.md
|
@ -57,18 +57,12 @@ Note that destreamer won't run in an elevated (Administrator/root) shell. Runnin
|
|||
## Can i plug in my own browser?
|
||||
|
||||
Yes, yes you can. This may be useful if your main browser has some authentication plugins that are required for you to logon to your Microsoft Stream tenant.
|
||||
To use your own browser for the authentication part, locate the following snippet in `src/destreamer.ts`:
|
||||
To use your own browser for the authentication part, locate the following snippet in `src/destreamer.ts` and `src/TokenCache.ts`:
|
||||
|
||||
```typescript
|
||||
const browser: puppeteer.Browser = await puppeteer.launch({
|
||||
executablePath: getPuppeteerChromiumPath(),
|
||||
headless: false,
|
||||
userDataDir: (argv.keepLoginCookies) ? chromeCacheFolder : undefined,
|
||||
args: [
|
||||
'--disable-dev-shm-usage',
|
||||
'--fast-start',
|
||||
'--no-sandbox'
|
||||
]
|
||||
// …
|
||||
});
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in a new issue