in frontend/app/LoginComponentNew.tsx [22:32]
const loadConfig: () => Promise<OAuthConfiguration> = async () => {
const response = await fetch("/meta/oauth/config.json");
if (response.status === 200) {
const data = await response.json();
const config = new OAuthConfiguration(data); //validates the configuration and throws a VError if it fails
setTokenUri(config.tokenUri);
return config;
} else {
throw `Server returned ${response.status}`;
}
};