mirror of
https://github.com/OpenHands/OpenHands.git
synced 2026-03-22 05:37:20 +08:00
fix(frontend): Fix waitlist logic (#4492)
This commit is contained in:
@@ -2,7 +2,7 @@ import { retrieveGitHubUser, isGitHubErrorReponse } from "#/api/github";
|
||||
import OpenHands from "#/api/open-hands";
|
||||
|
||||
export const userIsAuthenticated = async (ghToken: string | null) => {
|
||||
if (window.__APP_MODE__ === "oss") return true;
|
||||
if (window.__APP_MODE__ !== "saas") return true;
|
||||
|
||||
let user: GitHubUser | GitHubErrorReponse | null = null;
|
||||
if (ghToken) user = await retrieveGitHubUser(ghToken);
|
||||
|
||||
Reference in New Issue
Block a user