curl --request POST \
--url https://api.example.com/api/auth/google-login \
--header 'Content-Type: application/json' \
--data '
{
"credential": "<string>",
"withVideo": true
}
'{
"error": "Google credential is required"
}
Authenticate or create a user account using Google OAuth credentials
curl --request POST \
--url https://api.example.com/api/auth/google-login \
--header 'Content-Type: application/json' \
--data '
{
"credential": "<string>",
"withVideo": true
}
'{
"error": "Google credential is required"
}
curl -X POST https://api.meetmates.com/api/auth/google-login \
-H "Content-Type: application/json" \
-d '{
"credential": "eyJhbGciOiJSUzI1NiIsImtpZCI6IjE5ZmUyYT...",
"withVideo": true
}'
{
"credential": "eyJhbGciOiJSUzI1NiIsImtpZCI6IjE5ZmUyYT...",
"withVideo": true
}
Show properties
{
"success": true,
"message": "Google login successful",
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"user": {
"id": "507f1f77bcf86cd799439011",
"email": "[email protected]",
"name": "John Doe",
"profilePicture": "https://lh3.googleusercontent.com/a/...",
"isGoogleUser": true,
"withVideo": true
}
}
{
"error": "Google credential is required"
}
isVerified: true)