How to use iOS client from Google or should I use WebClient and why?

Rookie issue. I want to implement Google SignUp inside the iOS application using Auth0, but I am too confused. I did it, but I am not sure how correct is it.

Google docs says that I MUST stick with “iOS client” option. But this option, won’t give us clientSecret that I need to set, when create “Social” connection inside Auth0.

Instead, I created a WebClient in Google project and used provided clientId and clientSecret to connect with Auth0. Downloaded an Auth0 SDK for Swift and followed instructions. Tested on iOS simulator and signup works perfect.

Question: Should I continue with WebClient from Google or I got something wrong, where to find docs why does it work that way, or maybe I can use iOS client also somewhere?

Question: I don’t understand if should I create an API in Auth0, cause I am only created an Application ?

Question: When I will have Apple TeamID and working bundleId, what changes should I do?

Hi @dmtreaqq,

Thank you for posting!

You can keep using the WebClient for Google since it offers the required clientId and clientSecret to configure Auth0 for social login.
In your current scenario, creating an API in Auth0 isn’t needed unless you’re working on a backend API that requires secure access tokens.
When you obtain your Apple TeamID and BundleID, remember to update your configurations for future Sign in with Apple integration, but these are not needed for Google authentication.

Auth0 - Google Social Connection (Installation tab)

Hope it helps!
Valerian

1 Like

@valerian Thank you a lot for your reply! Found same guide here — Google Social Connection to Login

unless you’re working on a backend API that requires secure access tokens

Actually, I am working on a NestJS backend API that require token for Auth that I check with JWKS.json

But I didn’t create an API inside Auth0 dashboard, that is a question

UPD: All of these my own projects. I am just don’t understand when to create API inside Auth0 dashboard, cause right now I am just using a token for auth on my backend and that’s it.

It depends. Auth0 does not directly call your API but it plays a role in issuing access tokens and managing scopes. I’d recommend getting familiar with the following article:

Thanks!
Valerian