You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### Fixes #
<!-- Mention the issues this PR addresses -->
#2955
### Checks
- [ ] Ran `yarn test-build`
- [ ] Updated relevant documentations
- [ ] Updated matching config options in altair-static
### Changes proposed in this pull request:
<!-- Describe the changes being introduced in this PR -->
## Summary by Sourcery
Unify login provider handling across web and Electron flows by
centralizing identity provider constants and popup URL generation, and
wiring the selected provider through the Electron IPC authentication
path.
New Features:
- Introduce a shared identity provider module with helpers to construct
login popup URLs.
Bug Fixes:
- Ensure Electron authentication passes the selected identity provider
through IPC and uses the correct login popup URL format.
Enhancements:
- Refactor login redirect and API client code to use the shared identity
provider utilities instead of local implementations.
- Loosen the Electron IPC handler argument typing to support provider
parameters.
Build:
- Add api-utils as a dependency of the altair-electron package.
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **New Features**
* Added support for multiple identity providers (Google, GitHub) for
user authentication.
* **Chores**
* Updated dependencies to support identity provider functionality.
<sub>✏️ Tip: You can customize this high-level summary in your review
settings.</sub>
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
// TODO: For some reason, importing from altair-db in login-redirect package causes issues. Strangely this only seems to affect login-redirect package.
2
+
// Getting src/login-redirect.ts (4:2): "IDENTITY_PROVIDERS" is not exported by "../altair-db/build/client.js", imported by "src/login-redirect.ts".
0 commit comments