The login google endpoint allows users to authenticate using their Google account credentials. It accepts a JSON payload
POST/v1/auth/google-login
The login google endpoint allows users to authenticate using their Google account credentials. It accepts a JSON payload containing an access token, validates the token, retrieves the user's email and given name, and checks if the user exists in the database. Upon successful validation and existing user check, it generates an OTP code and returns a JSON object including the user's email, nickname, salt, and OTP code. If the user does not exist, it returns a JSON object with the email, nickname, and salt. This endpoint supports HTTP POST method at /v1/auth/google-login.
Request
- application/json
Body
required
accessToken stringrequired
Responses
- 200
- 400
- 403
Successful login
Bad request
Forbidden
Loading...