diff --git a/src/fetcher/repositoryStats.ts b/src/fetcher/repositoryStats.ts index 119afe8..20f965a 100644 --- a/src/fetcher/repositoryStats.ts +++ b/src/fetcher/repositoryStats.ts @@ -1,5 +1,5 @@ import axios from "axios"; -import getToken from "../getToken"; +import { getToken3 } from "../getToken"; /** * Type representing the data associated with a user's repository stats. @@ -68,7 +68,7 @@ async function getPerPageRepositoryData( url: `https://api.github.com/users/${sanitizedUsername}/repos?page=${pageno}&per_page=100`, headers: { "User-Agent": "FajarKim/github-readme-profile", - Authorization: getToken(true), + Authorization: getToken3(true), }, }); diff --git a/src/fetcher/stats.ts b/src/fetcher/stats.ts index 4d4ae29..a0c76ce 100644 --- a/src/fetcher/stats.ts +++ b/src/fetcher/stats.ts @@ -1,5 +1,5 @@ import axios from "axios"; -import getToken from "../getToken"; +import { getToken, getToken2, getToken3 } from "../getToken"; /** * Represents a user's information and statistics. @@ -167,7 +167,7 @@ async function getUserJoinYear(username: string): Promise { url: "https://api.github.com/graphql", headers: { "User-Agent": "FajarKim/github-readme-profile", - Authorization: getToken(true), + Authorization: getToken3(true), }, data: { query: `query userInfo($username: String!) { @@ -210,7 +210,7 @@ async function fetchContributions(username: string, year: number): Promise