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 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: []