You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In some cases the possibility to push code from a StackBlitz application to GitHub does not work. In my particular case this happened after I needed to clean up (i.e. remove all) my authorized OAuth apps on GitHub.
This included the StackBlitz app as well, so that I had to re-authorize access to my GitHub account the next time I wanted to sign in to StackBlitz. While that worked there was no second authorization request that lets StackBlitz access my repositories as well (like the first time). After that my attempts to push a StackBlitz application to GitHub failed.
Reproduction steps:
Sign in to StackBlitz
Allow access to your GitHub account for the StackBlitz app (OAuth)
Create a new application on StackBlitz
Click on "Connect Repository" and "Create Repo & Push"
The StackBlitz app saves the OAuth token the first time a user grants access to their GitHub account.
Later, when a user wants to push code from StackBlitz to GitHub (the first time), the app requests additional rights (access to repositories) and stores a flag that states that those rights were granted.
After that the OAuth app is removed from GitHub and the next time a user tries to sign in to StackBlitz the stored token is invalid. Hence StackBlitz requests access to a user's GitHub account again.
Access is granted again, however the StackBlitz app is still not allowed to access the repositories. But StackBlitz still has the flag that states that it has the rights to do so.
So the XHR is executed, leading to a 401. But there's no error handler in StackBlitz to reset the flag.
The text was updated successfully, but these errors were encountered:
I am also having same issue and tried with firefox and chrome, and also disabling all pop-up blockers.
But no success. I also could not find any useful reply from anyone.
Anyone has any solution to this problem?
Description
In some cases the possibility to push code from a StackBlitz application to GitHub does not work. In my particular case this happened after I needed to clean up (i.e. remove all) my authorized OAuth apps on GitHub.
This included the StackBlitz app as well, so that I had to re-authorize access to my GitHub account the next time I wanted to sign in to StackBlitz. While that worked there was no second authorization request that lets StackBlitz access my repositories as well (like the first time). After that my attempts to push a StackBlitz application to GitHub failed.
Reproduction steps:
https://api.github.com/user/repos
returns a401 Unauthorized
GitHub's response in step 8 is:
Hypothesis (wild guess)
The text was updated successfully, but these errors were encountered: