Finance Tracker API
Github
Github
  1. Auth
  • Auth
    • Login
      POST
    • Register
      POST
    • Login Google
      GET
    • Login Google Callback
      GET
  • User
    • Get Me
      GET
    • Update Profile
      PUT
    • Change Password
      PUT
    • Set Password for User Register by Google
      PUT
    • Get Password Status
      GET
  • Category
    • Create Category
      POST
    • Update Category
      PUT
    • Get Category by User
      GET
    • Delete Category
      DELETE
  • Wallet
    • Create Wallet
      POST
    • Update Wallet
      PUT
    • Get Wallet by User
      GET
    • Delete Wallet
      DELETE
  • Transaction
    • Delete Transaction
      DELETE
    • Get Transaction by User
      GET
    • Update Transaction
      PUT
    • Create Transaction
      POST
  • Setting
    • Get Setting
      GET
    • Update Setting
      PUT
  • Report
    • Get Wallet Summary
    • Get Chart Line Data
    • Get Chart Pie Data
  1. Auth

Login Google

Developing
GET
/auth/google
Maintainer:Sofyan R.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://localhost:3000/auth/google'
Response Response Example
200 - Success
{
    "success": true,
    "message": "Google auth URL generated",
    "data": {
        "authUrl": "https://accounts.google.com/o/oauth2/v2/auth?access_type=offline&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.profile&include_granted_scopes=true&response_type=code&client_id=your-google-client-id.apps.googleusercontent.com&redirect_uri=http%3A%2F%2Flocalhost%3A3000%2Fauth%2Fgoogle%2Fcallback"
    }
}

Request

None

Responses

🟢200OK
application/json
Body

🔴500Invalid Credential
Modified at 2025-07-28 19:14:05
Previous
Register
Next
Login Google Callback
Built with