provide github credentials to api endpoint to automate github login
Clone the repository:
git clone https://github.com/daniel-ibok/playwright-github.git
To run the project, use the following command:
go run main.go
Make request to login api endpoint with your github credentials
curl -X POST http://locahost:9001/login -d email="yourusername" password="password"
After successfully response from the above request, provide totp code for authentication to complete login
curl -X POST http://locahost:9001/twoauth -d code="yourtotpcode"
The response from the above request returns yout github cookie and username