Skip to content

Commit 41e9fe8

Browse files
committedJun 16, 2024
resolve conflict
1 parent 219c6b7 commit 41e9fe8

File tree

3 files changed

+1
-54
lines changed

3 files changed

+1
-54
lines changed
 

‎README.md

+1-42
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,11 @@ The OAuthify library provides a seamless integration for adding OAuth-based logi
88
- **Secure Authentication:** Redirects users to the respective service's login page and securely handles the OAuth callback.
99
- **Customizable:** Allows for custom handling of successful or failed logins, enabling you to tailor the user experience.
1010

11-
<<<<<<< HEAD
1211
<!-- ![OAuthify Auth 2.0 headless Component](/src/assets/OAuthify.png) -->
1312

1413
<p align="center">
1514
<img src="src/assets/OAuthify.png" alt="OAuthify Auth 2.0 headless Component" width="200">
1615
</p>
17-
=======
18-
![OAuthify Auth 2.0 headless Component](/src/assets/OAuthify.png)
19-
>>>>>>> e254e27 (updated readme)
2016

2117
### Installation
2218

@@ -49,28 +45,12 @@ import {
4945
GoogleIcon,
5046
GithubIcon,
5147
} from 'oauthify';
52-
<<<<<<< HEAD
53-
=======
54-
import { useAuth } from './contexts/Auth.context';
48+
import { useOAuthify } from 'oauthify';
5549

56-
>>>>>>> e254e27 (updated readme)
5750
const googleClientId = 'xxxxxxxxx';
5851
const githubClientId = 'XXXXXXXX';
5952

6053
const App = () => {
61-
<<<<<<< HEAD
62-
const handleSuccess = (response) => {
63-
console.log('Google login success:', response);
64-
// Handle successful login, e.g., set user info in app state
65-
};
66-
67-
const handleFailure = (error) => {
68-
console.error('Google login failure:', error);
69-
// Handle failed login, e.g., show error message to user
70-
};
71-
72-
=======
73-
>>>>>>> e254e27 (updated readme)
7454
return (
7555
<OAuthifyProvider>
7656
<div>
@@ -82,17 +62,6 @@ const App = () => {
8262
};
8363

8464
const LoginComponent = () => {
85-
<<<<<<< HEAD
86-
return (
87-
<>
88-
<div className="flex flex-row justify-center items-center my-6 space-x-2">
89-
<GoogleLoginButton
90-
clientId={googleClientId}
91-
redirectUri={redirectUri}
92-
onSuccess={handleSuccess}
93-
onFailure={handleFailure}
94-
>
95-
=======
9665
const { onSuccess, onFailure, setOnSuccess } = useOAuthify();
9766

9867
const handleSuccess = () => {
@@ -113,7 +82,6 @@ const LoginComponent = () => {
11382
<>
11483
<div className="flex flex-row justify-center items-center my-6 space-x-2">
11584
<GoogleLoginButton clientId={googleClientId} redirectUri={redirectUri}>
116-
>>>>>>> e254e27 (updated readme)
11785
<div
11886
style={{
11987
display: 'flex',
@@ -134,16 +102,7 @@ const LoginComponent = () => {
134102
</div>{' '}
135103
</GoogleLoginButton>
136104

137-
<<<<<<< HEAD
138-
<GitHubLoginButton
139-
clientId={githubClientId}
140-
redirectUri={redirectUri}
141-
onSuccess={handleSuccess}
142-
onFailure={handleFailure}
143-
>
144-
=======
145105
<GitHubLoginButton clientId={githubClientId} redirectUri={redirectUri}>
146-
>>>>>>> e254e27 (updated readme)
147106
>
148107
<div
149108
style={{

‎package-lock.json

-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

-4
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,7 @@
2424
],
2525
"types": "dist/types/index.d.ts",
2626
"private": false,
27-
<<<<<<< HEAD
28-
"version": "0.0.20",
29-
=======
3027
"version": "0.0.24",
31-
>>>>>>> e254e27 (updated readme)
3228
"type": "module",
3329
"files": [
3430
"dist"

0 commit comments

Comments
 (0)
Please sign in to comment.