Fix DMP user ownership error

This commit is contained in:
George Kalampokis 2023-10-18 18:13:32 +03:00
parent 7cba7b2346
commit 093837c395
2 changed files with 3 additions and 2 deletions

View File

@ -19,6 +19,7 @@ export interface AppPrincipalInfo{
notBefore: Date;
authenticatedAt: Date;
expiresAt: Date;
userId: Guid;
more: Record<string, string[]>
}
export interface UserProfileInfo {

View File

@ -125,9 +125,9 @@ export class AuthService extends BaseService {
if (
this.appAccount &&
this.appAccount.principal &&
this.appAccount.principal.subject
this.appAccount.principal.userId
) {
return this.appAccount.principal.subject;
return this.appAccount.principal.userId;
}
return null;
}