Replies: 9 comments
-
Not sure if i'm allowed to bump this? Really stuck on it. Would appreciate help |
Beta Was this translation helpful? Give feedback.
-
I'm also looking for information on this? Is it even possible? Seems like it should be? |
Beta Was this translation helpful? Give feedback.
-
same issue edit:I manage to solve the issue on React Native const appleAuthRequestResponse = await appleAuth.performRequest({
requestedOperation: appleAuth.Operation.LOGIN,
requestedScopes: [appleAuth.Scope.FULL_NAME, appleAuth.Scope.EMAIL],
});
await supabase.auth.signInWithIdToken({
provider: 'apple',
token: appleAuthRequestResponse.identityToken,
nonce: appleAuthRequestResponse.nonce,
}); then, I was able to link the identity simply calling this await supabase.auth.linkIdentity({
provider: 'apple',
options: {skipBrowserRedirect: true},
}); |
Beta Was this translation helpful? Give feedback.
-
Also stuck on this one, can't find a way to link an anonymous user to an apple account in react native. |
Beta Was this translation helpful? Give feedback.
-
@chramos how did you call I was logged out from the app when I called I'm using Google authentication. const userInfo = await GoogleSignin.signIn();
await supabase.auth.signInWithIdToken({
provider: "google",
token: userInfo.idToken ?? "",
});
await supabase.auth.linkIdentity({
provider: "google",
options: { skipBrowserRedirect: true },
}); |
Beta Was this translation helpful? Give feedback.
-
+1 for that issue. |
Beta Was this translation helpful? Give feedback.
-
Anyone else figure out how to do this? If only linkIdentity would accept some authtoken. |
Beta Was this translation helpful? Give feedback.
-
It looks that there is no way to convert an anonymous user to an permanent user using native social sign in. The only auth method that works to do this conversion is email. I guess there is a manual workaround to store data in local storage > logout > sign In with social > upload new data and handle potential conflicts. We would really need a way to link identity with token |
Beta Was this translation helpful? Give feedback.
-
Guys, we need the ability to link identity by using an ID token. We're building a React Native app where a user completes onboarding while logged in as an anonymous user (and we save information into our database based on this user). Then, when we authenticate them using OAuth and The ideal solution would be to have Thank you so much! |
Beta Was this translation helpful? Give feedback.
-
I'm currently integrating Apple authentication with Supabase Auth in a React Native app. I'm attempting to link anonymous users to an auth provider (Apple) using the linkIdentity method from Supabase Auth. This method should ideally trigger a redirect to the provider's authentication page. However, the documentation hasn't been very helpful in implementing this in a React Native environment.
documentation
Here’s the function I'm using to link anonymous auth with Apple:
Safari opens on the phone and displays a native sheet prompting for authentication details. However, after entering the required details, I encounter a problem. The sign-up process does not complete, and I'm left with a message indicating "Sign-up not completed.
Appreciate any help I can get.
Beta Was this translation helpful? Give feedback.
All reactions