-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: For third-party-login defect #10818
Comments
How can retrieve email from customer from "provider_identity" table? |
@hans642 Here's how I'm fetching user info for google auth:
Call this API on the storefront after the initial callback, getUserInfo function on the storefront
Storefront code.
|
Thank you @ranjithkumar8352 1.Create a custom route to get user info /store/customer/auth/route.ts
2.use middleware check auth
3.Storefront code
|
Solved, Close this ticket |
Package.json file
Node.js version
v20.15.1
Database and its version
16.4
Operating system name and version
macOS 15.1
Browser name
Chrome
What happended?
Reference Document: https://docs.medusajs.com/resources/storefront-development/customers/third-party-login
In Step 2: Callback Page in Storefront
When call callback api
Then adds to the page the function createCustomer, Here not return google name, picture info only can createCustomer have a email.
Expected behavior
option1: return authIdentity info
option2: can let develop set metadata
Actual behavior
Can't got google callback info
Link to reproduction repo
medusa(v2)
The text was updated successfully, but these errors were encountered: