-
Notifications
You must be signed in to change notification settings - Fork 54
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
Provide given and family name during Apple native sign in #105
Comments
…native apple sign in (supabase-community#105)
When a user signs in using Apple for the first time for the app, Apple will provide the full name and email address if the user approves it. The full name and email address will be available in the raw user metadata the same way as Google login, and you can use triggers to store them in any table that you would like. If you are not seeing the full name and email address after completing the Apple sign in, it means that the user has signed-in on the same app before. |
I don't see this happening, even in production. I even added analytics logs to my app whenever someone signs up using apple, and the metadata have never been there. There are also open issues on supabase. The only thing that is working is this workaround that others have proposed and that I am using now and have started in my fork. |
Could you link the issues that you have found discussing this topic? If it's an existing bug, we should fix it the proper way. The Supabase auth server should be storing that information on the user's metadata. |
Here the references:
However, I've seen this comment from you:
But the method Another option that I have not tested yet is at the |
Feature request
Is your feature request related to a problem? Please describe.
When signing up with Apple natively, the name is not propagated to supabase and not returned by the
_nativeAppleSignIn()
method.However, Apple has strict rules: when a user signs up natively with their name, the app must not ask for their name again, because the user has already given us their name.
Describe the solution you'd like
Provide a callback during
_nativeAppleSignIn()
that takesDescribe alternatives you've considered
Best way would be to fix supabase so they already include the names in the raw metadata like with Google OAuth. But I was not able to dig into it.
Additional context
I have created a solution that works for me in a branch, will create a PR.
The text was updated successfully, but these errors were encountered: