Skip to content

TW-5026: Add a dev app id - #4

Merged
AaronDDM merged 1 commit into
mainfrom
add-dev-env
Sep 5, 2025
Merged

AaronDDM merged 1 commit into
mainfrom
add-dev-env

Conversation

@AaronDDM

@AaronDDM AaronDDM commented Sep 5, 2025

Copy link
Copy Markdown
Collaborator

No description provided.

@AaronDDM
AaronDDM requested review from a team as code owners September 5, 2025 18:08
@AaronDDM
AaronDDM merged commit 7086697 into main Sep 5, 2025
1 check passed
@qasim-nylas
qasim-nylas deleted the add-dev-env branch January 30, 2026 15:20
@qasim-nylas qasim-nylas changed the title Add a dev app id TW-5026: Add a dev app id May 13, 2026
radenkovic added a commit that referenced this pull request Sep 30, 2026
…w window

Addresses review items #1-#5 on #123:
- #1 oauth login clears the stored session under the lock before writing
  the new one, and again if the write fails, so a failed login against
  another server never leaves the old refresh token filed under the new
  server's name.
- #2 config reset clears the dashboard and OAuth sessions under their
  cross-process locks, so an in-flight mcp serve refresh cannot write the
  session back.
- #3 dashboard session renewal, login and clear run under a new
  dashboard-session.lock and re-check expiry once it is held, so concurrent
  renewals exchange once and never interleave keys. A separate lock is used
  because renewal asks the OAuth session for a token, which may take
  oauth-session.lock; the order is always dashboard, then OAuth, then
  .secrets.lock. oauth logout holds the dashboard lock across the dashboard
  clear and the OAuth logout, keeping the dashboard-first order.
- #4 the renewer asks for an access token valid for at least the renew
  window (AccessTokenValidFor), so a re-exchange gets a new expiry.
- #5 oauth login keeps an existing `nylas dashboard login` session for the
  configured server instead of silently replacing it, and says so.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

2 participants