Implement generation user token functionality