Open lightofjeju opened 4 months ago
Check the personal information items that can be received when logging in on the Kakao developer site.
@lightofjeju Can you share the URL for this page?
Also I'm going to transfer this issue to the Auth backend repo as it seems like a backend issue.
@dshukertjr
And when I checked the auth log in the suppbase dashboard, I didn't receive not only the phone but also the birthdat birthyaer data.
@dshukertjr @lightofjeju
It seems to be requested because the above three scopes are always put in by default.
To modify, we need to modify the logic related to scopes, but other providers have the same logic, which seems to be intended maybe.
@doong-jo
Thank you for your answer.
Then, do you have any intention to make the oauthScopes value customizable?
oh.. sorry.. You're not a superbase developer 😁
@dshukertjr
hello! Who should I ask about this issue?
I added the phone_number value to scopes, but I am not receiving the phone_number value.
If this function doesn't work, I can't use the supabase auth and I think I'll have to link it with Kakao directly.. 🥲
@lightofjeju Our auth team will have a look at this issue whenever possible. Thanks for your patience.
It can be solved by attaching a trigger to the user table
to create an edge function that get additional information from KAKAO.
for example
serve(async (req) => {
const { record }: WebhookPayload = await req.json();
const appMetaData = record.raw_app_meta_data as RawAppMetaData;
const userMetaData = record.raw_user_meta_data as RawUserMetaData;
if (appMetaData.provider === "kakao") {
getKakaoUser(record.id, userMetaData);
}
});
@lightofjeju that's because the auth service requires these scopes by default
Describe the bug A clear and concise description of what the bug is.
To Reproduce Steps to reproduce the behavior:
Only the information requested by the scope is not imported
not response phone_number data
Screenshots
Version (please complete the following information): flutter 3.13.9 supabse_flutter ^2.3.3