Skip to content

Commit

Permalink
fix: new api for get user id
Browse files Browse the repository at this point in the history
  • Loading branch information
0xJord4n committed Feb 20, 2025
1 parent ed00183 commit 8e9144c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const getAccessToken = () => {

const getUserId = async (accessToken, login) => {
const response = await fetch(
`https://profile-aggr.intra.42.fr/api/v2/users/${login}`,
`https://intrapy.intra.42.fr/api/v1/users/${login}/summary`,
{
headers: {
authorization: `Bearer ${accessToken}`,
Expand Down

0 comments on commit 8e9144c

Please sign in to comment.