Skip to content

✨ Innovative and open-source visualization application that transforms various data formats, such as JSON, YAML, XML and CSV into interactive graphs.

refactor(validateToken): code refactor

AykutSaracedff409b7d83
diff --git a/src/services/google.ts b/src/services/google.ts
index c53219a4..d784b6d5 100644
--- a/src/services/google.ts
+++ b/src/services/google.ts
@@ -1,7 +1,7 @@
-import axios, { AxiosResponse } from "axios";
+import axios from "axios";
-const validateToken = async <T>(token: string): Promise<AxiosResponse<T>> => {
- return await axios.get(
+const validateToken = async <T>(token: string) => {
+ return await axios.get<T>(
`https://oauth2.googleapis.com/tokeninfo?id_token=${token}`
);
};