Looking to enable user login and retrieve specific user data using the Github REST API, such as repositories and issues.
After successfully implementing the login feature, I encountered an obstacle with the Github REST API that requires a token for endpoint access. Despite checking the session with getServerSession(authOptions)
and retrieving some information, the token was not included (refer to snippet below).
"session": {
"user": {
"name": "UserName",
"email": "<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="84fcfcfcfcfcfcfcfcc4e3e9e5ede8aae7ebe9">[email protected]</a>",
"image": "https://xxxxxx.xxxxxx/xxxxx"
}
}
I've attempted various solutions from StackOverflow without success.
Is there anyone out there who can assist me? Thanks in advance.