Sheets revision (#809)

* refactor: poll for authentication

* refactor: show success card
This commit is contained in:
Carlos Valente
2024-03-09 21:39:11 +01:00
committed by GitHub
parent 78b386742e
commit 41af3b7466
5 changed files with 70 additions and 36 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ const sheetsPath = `${apiEntryUrl}/sheets`;
* HTTP request to verify whether we are authenticated with Google Sheet service
*/
export const verifyAuthenticationStatus = async (): Promise<{ authenticated: AuthenticationStatus }> => {
const response = await axios.get(`${apiEntryUrl}/connect`);
const response = await axios.get(`${sheetsPath}/connect`);
return response.data;
};