How to handle 401 "Missing or invalid credentials" when fetching github API in custom plugin?

HI, i just developped a custom plugin to add a button in strapi, so i can launch my github action that deploys a nexts js frontend on s3 and invalidates cache. I can not find a way to make the button work as i am receiving from my strapi API endpoint “/custom-plugin/check-github-status” an error 401 “Missing or invalid credentials”. Do you know how to handle it ?

This topic has been created from a Discord post (1265425893568942121) to give it more visibility.
It will be on Read-Only mode here.
Join the conversation on Discord

Resolved it by using getFetchClient as it need a auth JWT token from session, it can not be tested outside in postman :
`import { getFetchClient } from “@strapi/helper-plugin”;

const { get } = getFetchClient();
const res = get(url, null, {
method,
headers})`