alchemyplatform / alchemyplatform/aa-sdk
Subdomain cookies error
Nobody has claimed this yet.
- 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.
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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