example repository repository export interface UserIdentityService < I , U > { param userIdentity example findOrCreateUser ( userIdentity ) : Promise < U > ; param userId example linkExternalProfile ( userId , userIdentity ) : Promise < U > ; }