So yesterday I posted an issue with the Google auth functionality - I followed all the steps in https://medusa-plugins.vercel.app/authentication/google, however when I click on 'Sign in with Google' I'm redirected to my 'successRedirect' (meaning it was successful), but when I click on 'account' again I'm shown the login screen again, basically like the successful login never happened.
now, here's what's weird - in the admin dashboard under 'Customers' I can actually see the details of the newly logged in account. I'm using Medusa version 1.20.0 and the auth plugin is 1.9.1.
here is my
{
resolve: "medusa-plugin-auth",
/** @type {import('medusa-plugin-auth').AuthOptions} */
options: [
{
type: "google",
// strict: "all", // or "none" or "store" or "admin"
strict: "none",
identifier: "google",
clientID: GoogleClientId,
clientSecret: GoogleClientSecret,
admin: {
callbackUrl: https://medudabackend-production.up.railway.app/admin/auth/google/cb,
failureRedirect: ${ADMIN_URL}/login,
// This query param will have priority over this configuration
successRedirect: https://pixelsjourney.com/
},
store: {
callbackUrl: https://medudabackend-production.up.railway.app/store/auth/google/cb,
failureRedirect: http://${STORE_URL}/login,
successRedirect: https://pixelsjourney.com/
}
}
]
},
As you guys can see I have my own domains now and all is deployed. the same issue is replicated both in my local env and in prod.
any suggestions?