ItemConsulting / enonic-types

TypeScript types for Enonic XP
MIT License
8 stars 2 forks source link

getPrincipal returns User | null #7

Closed srnilssen closed 4 years ago

srnilssen commented 4 years ago

https://github.com/ItemConsulting/enonic-types/blob/60654bad3ee4171a19cd381658c19c3a5e9e219a/src/auth.ts#L68

The getPrincipal function returns null if no principal is found according to the docs.