I'm trying to implement OAuth in my Magic OAuth login, but I'm encountering an error. After selecting an email in Google login, the error message 'Could not process OAuth request because cookies are malformed, missing, or tampered with.' appears.
🧩 Steps to Reproduce
Select Google to log in.
Select an email.
The error message 'Could not process OAuth request because cookies are malformed, missing, or tampered with.' appears.
🤔 Expected behavior
I expect to be redirected back to my website and receive the user's information.
😮 Actual behavior
An error occurs: 'Could not process OAuth request because cookies are malformed, missing, or tampered with.'
Issue fixed
Invalid redirectionURI value (it should be page with handleOAuthCallback method)
working code
await magic.oauth.loginWithRedirect({ provider, redirectURI: '${window.location.origin}' })
🐛 Description
I'm trying to implement OAuth in my Magic OAuth login, but I'm encountering an error. After selecting an email in Google login, the error message 'Could not process OAuth request because cookies are malformed, missing, or tampered with.' appears.
🧩 Steps to Reproduce
🤔 Expected behavior
I expect to be redirected back to my website and receive the user's information.
😮 Actual behavior
An error occurs: 'Could not process OAuth request because cookies are malformed, missing, or tampered with.'
💻 Code Sample
}
🌎 Environment
magic-sdk
npm