Replace uid by token