I see that most of the marketplace functions that generate a magic link will create a password / random string and then use a function to encode the string before returning it as the token.
Is there any benefit to this approach versus just generating a UUID to serve as the token? The encoding seems unnecessary.