Skip to content

fix: [PDI-3249] - Use sessionStorage for codeVerifier and nonce: update OAuth and storage#13570

Draft
mkaminsk-akamai wants to merge 2 commits intolinode:developfrom
mkaminsk-akamai:sessionStorage_for_codeVerifier
Draft

fix: [PDI-3249] - Use sessionStorage for codeVerifier and nonce: update OAuth and storage#13570
mkaminsk-akamai wants to merge 2 commits intolinode:developfrom
mkaminsk-akamai:sessionStorage_for_codeVerifier

Conversation

@mkaminsk-akamai
Copy link
Copy Markdown
Contributor

@mkaminsk-akamai mkaminsk-akamai commented Apr 9, 2026

Description 📝

@pmakode-akamai This is a code snipplet which can help to reproduce the case when user who has multiple CM tabs open receives message in console that codeVerifier not being found. You can reproduce it locally when you point local APIV4 environment to production APIV4 so CM will get 401s each time.
Without changes to storage.ts you should be able to reproduce the message with codeVerifier not being found.
If you apply changes from storage.ts the issue seems to be gone, since when there are multiple tabs open the codeVerifier may overwritten in local storage, thus I switching in this code snipplet to use sessionStorage seems to resolve it.

Changes 🔄

List any change(s) relevant to the reviewer.

  • ...
  • ...

Scope 🚢

Upon production release, changes in this PR will be visible to:

  • All customers
  • Some customers (e.g. in Beta or Limited Availability)
  • No customers / Not applicable

Target release date 🗓️

Please specify a release date (and environment, if applicable) to guarantee timely review of this PR. If exact date is not known, please approximate and update it as needed.

Preview 📷

Include a screenshot <img src="" /> or video <video src="" /> of the change.

🔒 Use the Mask Sensitive Data setting for security.

💡 For changes requiring multiple steps to validate, prefer a video for clarity.

Before After
📷 📷

How to test 🧪

Prerequisites

(How to setup test environment)

  • ...
  • ...

Reproduction steps

(How to reproduce the issue, if applicable)

  • ...
  • ...

Verification steps

(How to verify changes)

  • ...
  • ...
Author Checklists

As an Author, to speed up the review process, I considered 🤔

👀 Doing a self review
❔ Our contribution guidelines
🤏 Splitting feature into small PRs
➕ Adding a changeset
🧪 Providing/improving test coverage
🔐 Removing all sensitive information from the code and PR description
🚩 Using a feature flag to protect the release
👣 Providing comprehensive reproduction steps
📑 Providing or updating our documentation
🕛 Scheduling a pair reviewing session
📱 Providing mobile support
♿ Providing accessibility support


  • I have read and considered all applicable items listed above.

As an Author, before moving this PR from Draft to Open, I confirmed ✅

  • All tests and CI checks are passing
  • TypeScript compilation succeeded without errors
  • Code passes all linting rules

@mkaminsk-akamai mkaminsk-akamai requested a review from a team as a code owner April 9, 2026 12:02
@mkaminsk-akamai mkaminsk-akamai marked this pull request as draft April 9, 2026 12:03
@mkaminsk-akamai mkaminsk-akamai changed the title Use sessionStorage for codeVerifier: update OAuth and storage Use sessionStorage for codeVerifier and nonce: update OAuth and storage Apr 9, 2026
@pmakode-akamai pmakode-akamai changed the title Use sessionStorage for codeVerifier and nonce: update OAuth and storage fix: [PDI-3249] - Use sessionStorage for codeVerifier and nonce: update OAuth and storage Apr 9, 2026
@pmakode-akamai pmakode-akamai self-requested a review April 9, 2026 12:15
@linode-gh-bot
Copy link
Copy Markdown
Collaborator

Cloud Manager UI test results

🔺 1 failing test on test run #2 ↗︎

❌ Failing✅ Passing↪️ Skipped🕐 Duration
1 Failing901 Passing11 Skipped39m 54s

Details

Failing Tests
SpecTest
object-storage.e2e.spec.tsCloud Manager Cypress Tests→object storage end-to-end tests » can update bucket access

Troubleshooting

Use this command to re-run the failing tests:

pnpm cy:run -s "cypress/e2e/core/objectStorage/object-storage.e2e.spec.ts"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Review

Development

Successfully merging this pull request may close these issues.

2 participants