magic-js
magic-js copied to clipboard
Infinite Console Logs: "Chrome is moving towards a new experience..." when using magic-sdk in Next.js
✅ Prerequisites
- [x] Did you perform a cursory search of open issues? Is this bug already reported elsewhere?
- [x] Are you running the latest SDK version?
- [x] Are you reporting to the correct repository (
magic-sdk)?
🐛 Description
Logs of "Chrome is moving towards a new experience that lets people make an informed choice with respect to third-party cookies." keep appearing infinitely.
🧩 Steps to Reproduce
- Simply set up the Magic Provider in a Next.js app.
🤔 Expected behavior
The logs of "Chrome is moving towards a new experience that lets people make an informed choice with respect to third-party cookies." should not keep appearing infinitely.
😮 Actual behavior
https://github.com/user-attachments/assets/220a817e-c28f-42b9-ad35-2cdfc0766445
💻 Code Sample
https://codesandbox.io/p/devbox/htw2js
🌎 Environment
| Software | Version(s) |
|---|---|
magic-sdk |
28.14.0 |
| Browser | chrome |
yarn |
|
| Operating System | windows |
If any one find an solution for the infinite console warning?
@sakthi-ionixx
The solution to avoiding those warnings is to use our non 3rd party based session management mechanism.
If you enable Auto Refresh under Session Management in your app settings, you'll utilize a session management mechanism that relies on 1st party refresh tokens.
My solution was to move to https://www.privy.io/