Files
nebula.js/commands/serve/web/utils/authRequests.js
Tobias Åström a0dc0f0ce1 fix(cli-serve): OAuth instance cache issue (#1500)
* fix: client id cache issue

* chore: fix originurl

---------

Co-authored-by: a-m-dev <a.mirzaei.dev@gmail.com>
2024-03-05 16:39:36 +01:00

10 lines
271 B
JavaScript

export const checkIfAuthorized = async () => {
const { isAuthorized } = await (await fetch('/auth/isAuthorized')).json();
return { isAuthorized };
};
export const getAppList = async () => {
const apps = await (await fetch(`/apps`)).json();
return apps || [];
};