UNPKG
@enonic/mock-xp
Version:
latest (1.1.0-B4)
1.1.0-B4
1.1.0-B3
1.1.0-B2
1.1.0-B1
1.0.0
1.0.0-RC1
1.0.0-B1
0.10.0
0.9.1
0.9.0
0.8.1
0.8.0
0.7.0
0.6.1
0.6.0
0.5.2
0.5.1
0.5.0
0.4.0
0.3.1
0.3.0
0.2.0
0.1.3
0.1.2
0.1.1
0.1.0
Mock Enonic XP API JavaScript Library
@enonic/mock-xp
/
src
/
implementation
/
auth
/
isUserKey.ts
10 lines
(7 loc)
•
199 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
import
type {
PrincipalKey
,
UserKey
, }
from
'@enonic-types/lib-auth'
;
export
function
isUserKey
(
principalKey: PrincipalKey
): principalKey is
UserKey
{
return
principalKey.
startsWith
(
'user:'
); }