Orange-OpenSource / Orange-OpenSource/github-security-alerts
On `macOS`, when I run the project and paste my PAT, I get `window.__TAURI_INTERNALS__ is undefined` error
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 5
- Forks
- 1
- Avg merge
- 9h 26m
- Merged PRs (30d)
- 13
Description
Describe the bug
As a developer,
When I run the npm start command and paste the GitHub PAT in the web browser window
I get a window.__TAURI_INTERNALS__ is undefinederror and cannot be authenticated
To Reproduce
Steps to reproduce the behavior:
- Clone the project
- Run
npm start - Click on button to create on GitHub PAT
- Copy/paste to the field the PAT
Expected behavior
I should go to the next screen of the app when the token is validated
Screenshots
Additional context
- OS:
macOS Tahoe 26.3.1 - Web browser for PAT:
Firefox 150.0 (aarch64) - Rust version:
rustc 1.95.0 (59807616e 2026-04-14) - Node version:
v24.9.0 - NPM version:
11.6.0 - Project version:
github-security-alerts@1.2.1
Browser console logs
Failed to load refresh interval from config, using default: TypeError: can't access property "invoke", window.__TAURI_INTERNALS__ is undefined
invoke core.js:202
Angular 3
invoke core.js:201
getRefreshInterval tauri.service.ts:149
__async main.js:23
ZoneAwarePromise Angular
__async main.js:7
getRefreshInterval main.js:241
loadRefreshIntervalFromConfig app.component.ts:77
__async main.js:23
ZoneAwarePromise Angular
__async main.js:7
loadRefreshIntervalFromConfig main.js:3432
ngOnInit app.component.ts:93
__async main.js:23
ZoneAwarePromise Angular
__async main.js:7
ngOnInit main.js:3451
Angular 45
<anonymous> main.ts:23
[app.component.ts:79:15](http://localhost:4200/src/app/app.component.ts)
Error checking auth status: TypeError: can't access property "invoke", window.__TAURI_INTERNALS__ is undefined
invoke core.js:202
Angular 3
invoke core.js:201
getAuthStatus tauri.service.ts:59
__async main.js:23
ZoneAwarePromise Angular
__async main.js:7
getAuthStatus main.js:141
checkAuthStatus app.component.ts:102
__async main.js:23
ZoneAwarePromise Angular
__async main.js:7
checkAuthStatus main.js:3458
ngOnInit app.component.ts:94
fulfilled main.js:10
Angular 20
<anonymous> main.ts:23
[app.component.ts:119:15](http://localhost:4200/src/app/app.component.ts)
Error getting token: TypeError: can't access property "invoke", window.__TAURI_INTERNALS__ is undefined
invoke core.js:202
Angular 3
invoke core.js:201
getToken tauri.service.ts:63
__async main.js:23
ZoneAwarePromise Angular
__async main.js:7
getToken main.js:146
checkAuthStatus app.component.ts:122
rejected main.js:17
Angular 20
<anonymous> main.ts:23
- Maybe related to this bug in Tauri side: https://github.com/tauri-apps/tauri/issues/8369
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by running npm start and inspect the browser console errors in app.component.ts, then trace the calls into tauri.service.ts, especially getRefreshInterval, getAuthStatus, and getToken. The fix is complete when entering a GitHub PAT reaches the next screen without window.__TAURI_INTERNALS__ errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- angular, tauri, typescript
- Domain
- authentication, desktop
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100