interface
Source: index.ts ↗
IAuthenticatedPrincipal
Describes user, which is currently authenticated to the backend.
export interface IAuthenticatedPrincipal
Properties
Property | Modifiers | Type | Description |
|---|---|---|---|
string | Unique identifier of the authenticated user. | ||
any | (Optional) Backend-specific user metadata. |
Property details
IAuthenticatedPrincipal.userIdproperty
Unique identifier of the authenticated user.
userId: string;
Remarks
The identifier semantics MAY differ between backend implementations. The client code SHOULD NOT make assumptions on the content (such as userId being valid email and so on).
IAuthenticatedPrincipal.userMetaproperty
Backend-specific user metadata.
userMeta?: any;