Is there any way to get the access token from the forge application. I have successfully implemented the external OAuth 2.O, but I can’t see the access token, Is it store anywhere ?
resolver.define("callGoToAPI", async (req) => {
console.log("req--", req);
try {
const gtResolve = await api
.asUser()
.withProvider("gotoresolve", "resolve-profile");
if (!(await gtResolve.hasCredentials())) {
const credData = await gtResolve.requestCredentials();
console.log("credData", credData);
}
const response = await gtResolve.fetch("/admin/rest/v1/me");
if (response) {
return response.json();
}
return null;
} catch (err) {
console.log("err", err);
throw err;
}
});
I’ve selected Custom UI and Issue-context template.
Could you please help me ?