MCPcopy Create free account
hub / github.com/alephdata/aleph / selectCurrentRoleId

Function selectCurrentRoleId

ui/src/selectors.js:161–166  ·  view source on GitHub ↗
(state)

Source from the content-addressed store, hash-verified

159}
160
161export function selectCurrentRoleId(state) {
162 const session = selectSession(state);
163 if (!!session.token) {
164 return session.token.split('.', 1);
165 }
166}
167
168export function selectCurrentRole(state) {
169 const roleId = selectCurrentRoleId(state);

Callers 2

mapStateToPropsFunction · 0.90
selectCurrentRoleFunction · 0.85

Calls 1

selectSessionFunction · 0.85

Tested by

no test coverage detected