-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
43a5565
commit f5f89e2
Showing
8 changed files
with
18,693 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
REACT_APP_API_KEY=AIzaSyDWfjbWSDjJ9Nnjjy8dD7Czop8YBMeie3E | ||
REACT_APP_AUTH_DOMAIN=x-check-awesome.firebaseapp.com | ||
REACT_APP_DATABASE_URL=https://x-check-awesome.firebaseio.com | ||
REACT_APP_PROJECT_ID=x-check-awesome | ||
REACT_APP_STORAGE_BUCKET=x-check-awesome.appspot.com | ||
REACT_APP_MESSAGING_SENDER_ID=330795781190 | ||
REACT_APP_APP_ID=1:330795781190:web:75daed787a2cdbd65b4e47 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
# need to uncomment it in next PR | ||
#.env | ||
|
||
# dependencies | ||
/node_modules | ||
/.pnp | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import { firebase } from '@firebase/app'; | ||
import '@firebase/auth'; | ||
|
||
const firebaseConfig = { | ||
apiKey: process.env.REACT_APP_API_KEY, | ||
authDomain: process.env.REACT_APP_AUTH_DOMAIN, | ||
databaseURL: process.env.REACT_APP_DATABASE_URL, | ||
projectId: process.env.REACT_APP_PROJECT_ID, | ||
storageBucket: process.env.REACT_APP_STORAGE_BUCKET, | ||
messagingSenderId: process.env.REACT_APP_MESSAGING_SENDER_ID, | ||
appId: process.env.REACT_APP_APP_ID, | ||
}; | ||
|
||
firebase.default.initializeApp(firebaseConfig); | ||
const provider = new firebase.auth.GithubAuthProvider(); | ||
|
||
const githubAuth = () => { | ||
firebase | ||
.auth() | ||
.signInWithPopup(provider) | ||
.then((result) => { | ||
const { user } = result; | ||
// eslint-disable-next-line no-console | ||
console.log(user); | ||
}) | ||
.catch((error) => { | ||
const errorCode = error.code; | ||
const errorMessage = error.message; | ||
// eslint-disable-next-line no-console | ||
console.log(errorCode, errorMessage); | ||
}); | ||
}; | ||
|
||
export default githubAuth; |
f5f89e2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉 Netlify deployed x-check-app as production
https://x-check-app.netlify.app