mirror of
https://github.com/All-Hands-AI/OpenHands.git
synced 2026-01-09 14:57:59 -05:00
fix(frontend): Always return user is authed if mode is oss (#4733)
This commit is contained in:
@@ -55,7 +55,7 @@ export const clientLoader = async ({ request }: ClientLoaderFunctionArgs) => {
|
||||
posthog.opt_in_capturing();
|
||||
}
|
||||
|
||||
let isAuthed: boolean = false;
|
||||
let isAuthed = false;
|
||||
let githubAuthUrl: string | null = null;
|
||||
|
||||
try {
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
import OpenHands from "#/api/open-hands";
|
||||
|
||||
export const userIsAuthenticated = async () => {
|
||||
if (window.__APP_MODE__ === "oss") return true;
|
||||
|
||||
try {
|
||||
await OpenHands.authenticate();
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user