alchemyplatform / alchemyplatform/aa-sdk

Subdomain cookies error

Open
#1,105 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
321
Forks
231
Avg merge
43m
Merged PRs (30d)
3

Description

Thanks for filling out this bug report. Please provide as much detail as possible.

[REQUIRED] Environment
  • Browser version:
  • AA SDK version:
  • Package:
[REQUIRED] Describe the problem

When clicking a link in one project that redirects to another on a subdomain they get this:
State loaded from storage couldn't be migrated since no migrate function was provided error being thrown when using subdomain cookies.

image

Example config:

sessionConfig: {
    expirationTimeMs: 2 * 60 * 60 * 1000,
    domain: !process.env.NEXT_PUBLIC_VERCEL_ENV
      ? "localhost" // local development
      : ".merp.io",
  },
How to reproduce:
Relevant code or sample repro:

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the redirect between projects on subdomains using the shown sessionConfig domain setting, then trace where the "State loaded from storage" migration error is raised. Done means the cross-subdomain redirect no longer throws when no migration function is provided.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
authentication
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.