function toUser toUser(userDomain: UserDomain): User Transform a UserDomain into a User. Examples ▶Example 1 import { toUser } from './user_utils.ts' const user = toUser('john-doe') console.assert(user === 'john.doe') Parameters userDomain: UserDomain User domain (hostname subdomain) derived from user login. Return Type User Corresponding user user login.