Add generate_api method in Users Repo and api tokens table in DB