Skip to content
This repository has been archived by the owner on Aug 14, 2024. It is now read-only.

Commit

Permalink
Update login.js
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewstech authored Jun 9, 2022
1 parent 54a549f commit 5595489
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/login.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ firebase.initializeApp({
const auth = firebase.auth();
const githubLoginProvider = new firebase.auth.GithubAuthProvider();

async function login() {
githubLoginProvider.addScope('repo');
async function login() {
auth.signInWithPopup(githubLoginProvider).then((res)=>{
const token = res.credential.accessToken
const user = res.additionalUserInfo.username;
Expand Down

0 comments on commit 5595489

Please sign in to comment.