According to the Mobile App Google documentation, there is a parameter named redirect_uri
which is not clear to me. For example, in the Web App flow of Google OAuth2, the procedure is some communication between front-end, back-end, and google server. In fact, the backend prepares two endpoints one for redirecting to the google auth page which will be called by the frontend, and another endpoint is /oauth2callback
which will be called by the google server as a redirect_uri
.
My question is, what's the redirect_uri
in the Mobile App flow? Is it the same with my backend /oath2callback
or Mobile App flow doesn't need any backend part?
[NOTE]:
Actually, I am going to receive credential stuff from the mobile side including access_token, refresh_token, etc, into the backend and store it into the db and use it for calling google API on the server side.
[UPDATE]
Here's the flow I've implemented: