MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / isValidStack

Function isValidStack

console/src/components/SwitchStackModal.tsx:102–112  ·  view source on GitHub ↗
(stack: string)

Source from the content-addressed store, hash-verified

100 );
101
102 const isValidStack = async (stack: string) => {
103 const baseUrl = getFronteggUrl(stack);
104 try {
105 const response = await fetch(
106 baseUrl + "/frontegg/identity/resources/configurations/v1/public",
107 );
108 return response.ok;
109 } catch (error) {
110 return false;
111 }
112 };
113
114 return (
115 <>

Callers 1

SwitchStackModalContentFunction · 0.85

Calls 2

getFronteggUrlFunction · 0.90
fetchFunction · 0.50

Tested by

no test coverage detected