Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Forge application can't fetch google drive file

Bassem alameddine January 19, 2024

Hello, 
i am creating a forge application where users can click on a button and authenticate through google to fetch there drive files 

the link to authenticate is the following: https://nodejs-production-820f.up.railway.app/auth/google 

the app code is the following

const authenticate = async () => {
        try{
            const ROOT = "https://nodejs-production-820f.up.railway.app"
            const url = `${ROOT}/auth/google`
            const res = await api.fetch(url);
            const data = await res.json();
            if (!data) {
                console.log("no data found");
                setData([]);
            }
            setData(data);
        }
       catch(ex){
        console.log(ex)
       }
    }
but sadly the app is not working and the user is not being redirected to google auth 
manifest.yml
modules:
  jira:issuePanel:
    - key: authgooglefrge-hello-world-panel
      function: main
      title: authgoogleFrge
  function:
    - key: main
      handler: index.run
app:
  id: ari:cloud:ecosystem::app/76da9d93-48ca-4ab6-b838-84aa1d333384
permissions:
  external:
    fetch:
      backend:
  scopes: []

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
TAGS
AUG Leaders

Atlassian Community Events