# Google OAuth2 Authorization **POST /auth/exchange** Exchange code for user profile information. ## Servers - Local development server: http://localhost:8080/api (Local development server) - Production server: https://api.huy-devops.site/api (Production server) ## Parameters ### Body: application/json (object) - **code** (string) The authorization code received from Google OAuth2 - **redirectUri** (string) The redirect URI used in the OAuth2 flow ## Responses ### 200 Get link to Google OAuth2 authorization URL #### Body: application/json (object) - **success** (boolean) - **code** (integer(int32)) - **message** (string) - **data** (object) ### 400 Bad Request - Invalid input data #### Body: application/json (object) - **success** (boolean) - **code** (integer) - **errorCode** (string) - **message** (string) - **timestamp** (string(date-time)) ### 500 Internal Server Error #### Body: application/json (object) - **success** (boolean) - **code** (integer) - **errorCode** (string) - **message** (string) - **timestamp** (string(date-time)) [Powered by Bump.sh](https://bump.sh)