Creates a validated UserId from a string.
The user ID string (typically from Auth0)
A branded UserId value
When the string is empty
const userId = makeUserId("auth0|123456789"); Copy
const userId = makeUserId("auth0|123456789");
Creates a validated UserId from a string.