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
Implement the flow which creates a repo in a user's GitHub account from a template. This flow is initiated by a button on the template details page.
Use the diagram (and associated comments) in the bottom right of this document as a guide for the flow, which auth being presented in a modal over the template details page.
The GitHub provider must have the public_repo scope added. Info on the GitHub provider is here
After successfully authenticating w/ GitHub with the proper scope, the result will contain a GitHub OAuth token. This is demonstrated in the provider documentation. Look for the following lines in their code example
// This gives you a GitHub Access Token. You can use it to access the GitHub API.constcredential=GithubAuthProvider.credentialFromResult(result);consttoken=credential.accessToken;
Store this token in our AuthStore in Zustand which was implemented in the feat/public-mode branch. Ensure that has been merged or branch off of it
Offer the user a modal to name the repo that will be created for them. The field should be prepopulated with the same name as the template repo. Confirmation of the modal should make an API call to this endpoint to execute creation of the repo.
The text was updated successfully, but these errors were encountered:
Implement the flow which creates a repo in a user's GitHub account from a template. This flow is initiated by a button on the template details page.
Use the diagram (and associated comments) in the bottom right of this document as a guide for the flow, which auth being presented in a modal over the template details page.
The GitHub provider must have the
public_repo
scope added. Info on the GitHub provider is hereAfter successfully authenticating w/ GitHub with the proper scope, the result will contain a GitHub OAuth token. This is demonstrated in the provider documentation. Look for the following lines in their code example
Store this token in our
AuthStore
in Zustand which was implemented in thefeat/public-mode
branch. Ensure that has been merged or branch off of itOffer the user a modal to name the repo that will be created for them. The field should be prepopulated with the same name as the template repo. Confirmation of the modal should make an API call to this endpoint to execute creation of the repo.
The text was updated successfully, but these errors were encountered: