chore: more code review comments

Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
blam
2021-12-03 10:33:05 +01:00
parent a76dacda24
commit e0f5814037
2 changed files with 3 additions and 1 deletions
@@ -65,7 +65,7 @@ export class LegacyUserIdentity implements IdentityApi {
return {
type: 'user',
userEntityRef: sub,
ownershipEntityRefs: ent ?? [sub],
ownershipEntityRefs: ent ?? [],
};
}
@@ -22,6 +22,8 @@ function parseJwtPayload(token: string) {
}
/**
* @public
*
* Parses token and decorates the BackstageIdentityResponse with identity information sourced from the token
*/
export function decorateWithIdentity(