Page Contents

Home > @loopback/security > DefaultSubject > getPrincipal

DefaultSubject.getPrincipal() method

Signature:

getPrincipal(type: string): Principal | undefined;

Parameters

Parameter Type Description
type string  

Returns:

Principal | undefined