MCPcopy Create free account
hub / github.com/hashintel/hash / getWebIdFromEntityId

Function getWebIdFromEntityId

apps/plugin-browser/src/shared/get-user.ts:60–61  ·  view source on GitHub ↗
(entityId: EntityId)

Source from the content-addressed store, hash-verified

58 * or in the plugin-browser webpack config.
59 */
60export const getWebIdFromEntityId = (entityId: EntityId) =>
61 entityId.split("~")[0] as WebId;
62
63export const getUser = (): Promise<LocalStorage["user"] | null> => {
64 return queryGraphQlApi<MeQuery, MeQueryVariables>(meQuery)

Callers 1

getUserFunction · 0.85

Calls 1

splitMethod · 0.80

Tested by

no test coverage detected