Search code examples
javascriptyarnpkgmagic-sdk

Could not authenticate via cookie Error: Unable to refresh user session. Please log in using the magic link flow to enable session persistence


I'm trying to log in with magic-sdk and am running into this error:

Could not authenticate via cookie Error: Unable to refresh user session. Please log in using the magic link flow to enable session persistence.


Solution

  • Change your test keys to live keys

    Magic no longer accepts test keys. So basically you have to use your live keys even when testing.