magic-js icon indicating copy to clipboard operation
magic-js copied to clipboard

Infinite Console Logs: "Chrome is moving towards a new experience..." when using magic-sdk in Next.js

Open shunshimono opened this issue 1 year ago • 3 comments

✅ 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

  1. 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

shunshimono avatar Oct 19 '24 12:10 shunshimono

If any one find an solution for the infinite console warning?

Screenshot from 2024-10-23 15-35-21

sakthivel-stack avatar Oct 23 '24 10:10 sakthivel-stack

@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. Screenshot 2024-10-25 at 09 24 56

ayv8er avatar Oct 25 '24 13:10 ayv8er

My solution was to move to https://www.privy.io/

joelbqz avatar Dec 17 '24 00:12 joelbqz