Kubessandra / react-google-calendar-api

An api to manage your google calendar
MIT License
215 stars 88 forks source link

Is it safe to add google creds in the frontend. #75

Closed echosonusharma closed 2 years ago

echosonusharma commented 2 years ago

its unsafe to add all those google creds in the frontend right. i wanted to know how bad it could get if these details gets into someone else's hand.

Kubessandra commented 2 years ago
{
  "clientId": "<CLIENT_ID>",
  "apiKey": "<API_KEY>",
  "scope": "https://www.googleapis.com/auth/calendar",
  "discoveryDocs": [
    "https://www.googleapis.com/discovery/v1/apis/calendar/v3/rest"
  ]
}

If you are speaking about these. They are not credentials and nothing secret.

echosonusharma commented 2 years ago
{
  "clientId": "<CLIENT_ID>",
  "apiKey": "<API_KEY>",
  "scope": "https://www.googleapis.com/auth/calendar",
  "discoveryDocs": [
    "https://www.googleapis.com/discovery/v1/apis/calendar/v3/rest"
  ]
}

If you are speaking about these. They are not credentials and nothing secret.

anyone can take those values and use them right and its on your google dev account. thanks for the reply ☺