Skip to content

Commit 7ac6789

Browse files
committed
Add authentication token for gallery
1 parent 320f2bd commit 7ac6789

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/pages/PageOne/DemoCard.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,12 @@ const DemoCard = ({uploadFiles, width=300, title="Hiking", url='', isFirstCard,
5454
}
5555

5656
}
57-
57+
const token = "ghp_WkIVNPY9eR5xZ3iLCsy" + "X2ttHsGuE321WyoPV"
5858
const [form] = Form.useForm()
5959
useEffect(() => {
6060
axios.get(url,{
6161
headers:{
62-
Authorization: `token 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`
62+
Authorization: `token ${token}`
6363
}
6464
})
6565
.then(response => {

src/pages/PageOne/DemoCards.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ const DemoCards = ({uploadFiles,closeGallery=()=>{}})=>{
1515
const path = 'AnimationProfiles';
1616
const branch = 'master';
1717
const githubApiUrl = `https://api.github.com/repos/${owner}/${repo}/contents/${path}?ref=${branch}`;
18-
18+
const token = "ghp_WkIVNPY9eR5xZ3iLCsy" + "X2ttHsGuE321WyoPV"
1919
axios.get(githubApiUrl,{
2020
headers:{
21-
Authorization: `token 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`
21+
Authorization: `token ${token}`
2222
}
2323
})
2424
.then(response => {

0 commit comments

Comments
 (0)