Skip to content

feat(sdk): own session logins and move playground off its own cache - #3703

Merged
themaherkhalil merged 2 commits into
devfrom
feat/sdk-session-logins
Oct 2, 2026
Merged

themaherkhalil merged 2 commits into
devfrom
feat/sdk-session-logins

Conversation

@themaherkhalil

Copy link
Copy Markdown
Contributor

SDK

  • Add getLogins, logoutProvider, and connectLogin to api/auth, with PopupBlockedError and SessionLoginDisconnectError
  • Add a page-wide Logins store and useLogins hook; the insight fills it from the config and resets it after login and logout

Playground

  • Read session logins from the SDK and sign in through Logins.connect
  • Replace connectors.api.ts with connector-tools.ts, which only reads and writes connector tool files

Utility

  • Move stringifyJsonWithSortedKeys into @semoss/utility/json

SDK
- Add getLogins, logoutProvider, and connectLogin to api/auth, with
  PopupBlockedError and SessionLoginDisconnectError
- Add a page-wide Logins store and useLogins hook; the insight fills it
  from the config and resets it after login and logout

Playground
- Read session logins from the SDK and sign in through Logins.connect
- Replace connectors.api.ts with connector-tools.ts, which only reads and
  writes connector tool files

Utility
- Move stringifyJsonWithSortedKeys into @semoss/utility/json
@themaherkhalil
themaherkhalil requested a review from a team as a code owner October 2, 2026 20:57
@snyk-io

snyk-io Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

✅ Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
✅ Open Source Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

- Compare and send provider login keys in upper case in connect and
  disconnect, so a lower-case name cannot sign out the session's login
- Drop a logins read still in flight when the session resets
- On logout only reset the logins; after a login whose config cannot be
  read, read the logins on their own
- Parse login maps in one place (parseLogins), used for both the logins
  read and the config
- Cover the auth calls and the login and logout wiring with tests
@themaherkhalil
themaherkhalil merged commit 70d7aa0 into dev Oct 2, 2026
5 checks passed
@themaherkhalil
themaherkhalil deleted the feat/sdk-session-logins branch October 2, 2026 21:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant