authverse 1.1.6 → 1.1.7-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1349 -439
- package/dist/index.js +1345 -443
- package/dist/template/TanstackState/components/AppleOAuthButton.tsx +31 -0
- package/dist/template/TanstackState/components/FacebookOAuthButton.tsx +33 -0
- package/dist/template/TanstackState/components/GithubProviders.tsx +2 -2
- package/dist/template/TanstackState/components/{GoogleProviders.tsx → GoogleOAuthButton.tsx} +2 -2
- package/dist/template/TanstackState/components/LinkedInOAuthButton.tsx +34 -0
- package/dist/template/TanstackState/components/TwitterOAuthButton.tsx +32 -0
- package/dist/template/components/AppleOAuthButton.tsx +33 -0
- package/dist/template/components/FacebookOAuthButton.tsx +35 -0
- package/dist/template/components/{GithubProviders.tsx → GithubOAuthButton.tsx} +2 -2
- package/dist/template/components/{GoogleProviders.tsx → GoogleOAuthButton.tsx} +2 -2
- package/dist/template/components/LinkedInOAuthButton.tsx +36 -0
- package/dist/template/components/TwitterOAuthButton.tsx +34 -0
- package/package.json +1 -1
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { authClient } from "@/lib/auth-client";
|
|
2
|
+
import { Button } from "../ui/button";
|
|
3
|
+
|
|
4
|
+
const AppleOAuthButton = () => {
|
|
5
|
+
const signIn = async () => {
|
|
6
|
+
await authClient.signIn.social({
|
|
7
|
+
provider: "apple",
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
return (
|
|
12
|
+
<Button
|
|
13
|
+
className="w-full text-base flex items-center gap-2"
|
|
14
|
+
variant="outline"
|
|
15
|
+
onClick={signIn}
|
|
16
|
+
>
|
|
17
|
+
{/* Apple SVG Icon */}
|
|
18
|
+
<svg
|
|
19
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
20
|
+
viewBox="0 0 24 24"
|
|
21
|
+
fill="currentColor"
|
|
22
|
+
>
|
|
23
|
+
<path d="M16.365 1.43c0 1.14-.46 2.22-1.22 3.03-.8.84-2.1 1.49-3.2 1.4-.14-1.11.4-2.29 1.17-3.09.79-.83 2.14-1.44 3.25-1.34zM21.54 17.21c-.56 1.3-.83 1.88-1.55 3.02-1 1.56-2.4 3.5-4.13 3.52-1.54.02-1.94-1-4.03-.99-2.09.01-2.53 1.01-4.07.99-1.73-.02-3.05-1.78-4.05-3.34-2.8-4.33-3.09-9.4-1.36-12.02 1.23-1.86 3.18-2.96 5.02-2.96 1.87 0 3.05 1.03 4.6 1.03 1.5 0 2.42-1.03 4.59-1.03 1.64 0 3.38.9 4.61 2.44-4.05 2.22-3.39 8.01.37 9.34z" />
|
|
24
|
+
</svg>
|
|
25
|
+
|
|
26
|
+
<span>Sign in with Apple</span>
|
|
27
|
+
</Button>
|
|
28
|
+
);
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export default AppleOAuthButton;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { authClient } from "@/lib/auth-client";
|
|
2
|
+
import { Button } from "../ui/button";
|
|
3
|
+
|
|
4
|
+
const FacebookOAuthButton = () => {
|
|
5
|
+
const signIn = async () => {
|
|
6
|
+
await authClient.signIn.social({
|
|
7
|
+
provider: "facebook",
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
return (
|
|
12
|
+
<Button
|
|
13
|
+
className="w-full text-base flex items-center gap-2"
|
|
14
|
+
variant="outline"
|
|
15
|
+
onClick={signIn}
|
|
16
|
+
>
|
|
17
|
+
{/* Facebook SVG Icon */}
|
|
18
|
+
<svg
|
|
19
|
+
width="20"
|
|
20
|
+
height="20"
|
|
21
|
+
viewBox="0 0 24 24"
|
|
22
|
+
fill="currentColor"
|
|
23
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
24
|
+
>
|
|
25
|
+
<path d="M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z" />
|
|
26
|
+
</svg>
|
|
27
|
+
|
|
28
|
+
<span>Sign in with Facebook</span>
|
|
29
|
+
</Button>
|
|
30
|
+
);
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export default FacebookOAuthButton;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { authClient } from "@/lib/auth-client";
|
|
2
2
|
import { Button } from "../ui/button";
|
|
3
3
|
|
|
4
|
-
const
|
|
4
|
+
const GithubOAuthButton = () => {
|
|
5
5
|
const signIn = async () => {
|
|
6
6
|
await authClient.signIn.social({
|
|
7
7
|
provider: "github",
|
|
@@ -31,4 +31,4 @@ const GithubProviders = () => {
|
|
|
31
31
|
);
|
|
32
32
|
};
|
|
33
33
|
|
|
34
|
-
export default
|
|
34
|
+
export default GithubOAuthButton;
|
package/dist/template/TanstackState/components/{GoogleProviders.tsx → GoogleOAuthButton.tsx}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { authClient } from "@/lib/auth-client";
|
|
2
2
|
import { Button } from "../ui/button";
|
|
3
3
|
|
|
4
|
-
const
|
|
4
|
+
const GoogleOAuthButton = () => {
|
|
5
5
|
const signIn = async () => {
|
|
6
6
|
await authClient.signIn.social({
|
|
7
7
|
provider: "google",
|
|
@@ -43,4 +43,4 @@ const GoogleProviders = () => {
|
|
|
43
43
|
);
|
|
44
44
|
};
|
|
45
45
|
|
|
46
|
-
export default
|
|
46
|
+
export default GoogleOAuthButton;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { authClient } from "@/lib/auth-client";
|
|
2
|
+
import { Button } from "../ui/button";
|
|
3
|
+
|
|
4
|
+
const LinkedInOAuthButton = () => {
|
|
5
|
+
const signIn = async () => {
|
|
6
|
+
await authClient.signIn.social({
|
|
7
|
+
provider: "linkedin",
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
return (
|
|
12
|
+
<Button
|
|
13
|
+
className="w-full text-base flex items-center gap-2"
|
|
14
|
+
variant="outline"
|
|
15
|
+
onClick={signIn}
|
|
16
|
+
>
|
|
17
|
+
{/* LinkedIn SVG Icon */}
|
|
18
|
+
|
|
19
|
+
<svg
|
|
20
|
+
width="20"
|
|
21
|
+
height="20"
|
|
22
|
+
viewBox="0 0 24 24"
|
|
23
|
+
fill="currentColor"
|
|
24
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
25
|
+
>
|
|
26
|
+
<path d="M19 0h-14c-2.761 0-5 2.239-5 5v14c0 2.761 2.239 5 5 5h14c2.762 0 5-2.239 5-5v-14c0-2.761-2.238-5-5-5zm-11 19h-3v-11h3v11zm-1.5-12.268c-.966 0-1.75-.79-1.75-1.764s.784-1.764 1.75-1.764 1.75.79 1.75 1.764-.783 1.764-1.75 1.764zm13.5 12.268h-3v-5.604c0-3.368-4-3.113-4 0v5.604h-3v-11h3v1.765c1.396-2.586 7-2.777 7 2.476v6.759z" />
|
|
27
|
+
</svg>
|
|
28
|
+
|
|
29
|
+
<span>Sign in with LinkedIn</span>
|
|
30
|
+
</Button>
|
|
31
|
+
);
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export default LinkedInOAuthButton;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { authClient } from "@/lib/auth-client";
|
|
2
|
+
import { Button } from "../ui/button";
|
|
3
|
+
|
|
4
|
+
const TwitterOAuthButton = () => {
|
|
5
|
+
const signIn = async () => {
|
|
6
|
+
await authClient.signIn.social({
|
|
7
|
+
provider: "twitter",
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
return (
|
|
12
|
+
<Button
|
|
13
|
+
className="w-full text-base flex items-center gap-2"
|
|
14
|
+
variant="outline"
|
|
15
|
+
onClick={signIn}
|
|
16
|
+
>
|
|
17
|
+
<svg
|
|
18
|
+
width="20"
|
|
19
|
+
height="20"
|
|
20
|
+
viewBox="0 0 24 24"
|
|
21
|
+
fill="currentColor"
|
|
22
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
23
|
+
>
|
|
24
|
+
<path d="M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932L18.901 1.153zM17.61 20.644h2.039L6.486 3.24H4.298l13.312 17.404z" />
|
|
25
|
+
</svg>
|
|
26
|
+
|
|
27
|
+
<span>Sign in with twitter(x)</span>
|
|
28
|
+
</Button>
|
|
29
|
+
);
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
export default TwitterOAuthButton;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import { authClient } from "@/lib/auth-client";
|
|
4
|
+
import { Button } from "../ui/button";
|
|
5
|
+
|
|
6
|
+
const AppleOAuthButton = () => {
|
|
7
|
+
const signIn = async () => {
|
|
8
|
+
await authClient.signIn.social({
|
|
9
|
+
provider: "apple",
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
return (
|
|
14
|
+
<Button
|
|
15
|
+
className="w-full text-base flex items-center gap-2"
|
|
16
|
+
variant="outline"
|
|
17
|
+
onClick={signIn}
|
|
18
|
+
>
|
|
19
|
+
{/* Apple SVG Icon */}
|
|
20
|
+
<svg
|
|
21
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
22
|
+
viewBox="0 0 24 24"
|
|
23
|
+
fill="currentColor"
|
|
24
|
+
>
|
|
25
|
+
<path d="M16.365 1.43c0 1.14-.46 2.22-1.22 3.03-.8.84-2.1 1.49-3.2 1.4-.14-1.11.4-2.29 1.17-3.09.79-.83 2.14-1.44 3.25-1.34zM21.54 17.21c-.56 1.3-.83 1.88-1.55 3.02-1 1.56-2.4 3.5-4.13 3.52-1.54.02-1.94-1-4.03-.99-2.09.01-2.53 1.01-4.07.99-1.73-.02-3.05-1.78-4.05-3.34-2.8-4.33-3.09-9.4-1.36-12.02 1.23-1.86 3.18-2.96 5.02-2.96 1.87 0 3.05 1.03 4.6 1.03 1.5 0 2.42-1.03 4.59-1.03 1.64 0 3.38.9 4.61 2.44-4.05 2.22-3.39 8.01.37 9.34z" />
|
|
26
|
+
</svg>
|
|
27
|
+
|
|
28
|
+
<span>Sign in with Apple</span>
|
|
29
|
+
</Button>
|
|
30
|
+
);
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export default AppleOAuthButton;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import { authClient } from "@/lib/auth-client";
|
|
4
|
+
import { Button } from "../ui/button";
|
|
5
|
+
|
|
6
|
+
const FacebookOAuthButton = () => {
|
|
7
|
+
const signIn = async () => {
|
|
8
|
+
await authClient.signIn.social({
|
|
9
|
+
provider: "facebook",
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
return (
|
|
14
|
+
<Button
|
|
15
|
+
className="w-full text-base flex items-center gap-2"
|
|
16
|
+
variant="outline"
|
|
17
|
+
onClick={signIn}
|
|
18
|
+
>
|
|
19
|
+
{/* Facebook SVG Icon */}
|
|
20
|
+
<svg
|
|
21
|
+
width="20"
|
|
22
|
+
height="20"
|
|
23
|
+
viewBox="0 0 24 24"
|
|
24
|
+
fill="currentColor"
|
|
25
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
26
|
+
>
|
|
27
|
+
<path d="M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z" />
|
|
28
|
+
</svg>
|
|
29
|
+
|
|
30
|
+
<span>Sign in with Facebook</span>
|
|
31
|
+
</Button>
|
|
32
|
+
);
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
export default FacebookOAuthButton;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { authClient } from "@/lib/auth-client";
|
|
4
4
|
import { Button } from "../ui/button";
|
|
5
5
|
|
|
6
|
-
const
|
|
6
|
+
const GithubOAuthButton = () => {
|
|
7
7
|
const signIn = async () => {
|
|
8
8
|
await authClient.signIn.social({
|
|
9
9
|
provider: "github",
|
|
@@ -33,4 +33,4 @@ const GithubProviders = () => {
|
|
|
33
33
|
);
|
|
34
34
|
};
|
|
35
35
|
|
|
36
|
-
export default
|
|
36
|
+
export default GithubOAuthButton;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { authClient } from "@/lib/auth-client";
|
|
4
4
|
import { Button } from "../ui/button";
|
|
5
5
|
|
|
6
|
-
const
|
|
6
|
+
const GoogleOAuthButton = () => {
|
|
7
7
|
const signIn = async () => {
|
|
8
8
|
await authClient.signIn.social({
|
|
9
9
|
provider: "google",
|
|
@@ -45,4 +45,4 @@ const GoogleProviders = () => {
|
|
|
45
45
|
);
|
|
46
46
|
};
|
|
47
47
|
|
|
48
|
-
export default
|
|
48
|
+
export default GoogleOAuthButton;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import { authClient } from "@/lib/auth-client";
|
|
4
|
+
import { Button } from "../ui/button";
|
|
5
|
+
|
|
6
|
+
const LinkedInOAuthButton = () => {
|
|
7
|
+
const signIn = async () => {
|
|
8
|
+
await authClient.signIn.social({
|
|
9
|
+
provider: "linkedin",
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
return (
|
|
14
|
+
<Button
|
|
15
|
+
className="w-full text-base flex items-center gap-2"
|
|
16
|
+
variant="outline"
|
|
17
|
+
onClick={signIn}
|
|
18
|
+
>
|
|
19
|
+
{/* LinkedIn SVG Icon */}
|
|
20
|
+
|
|
21
|
+
<svg
|
|
22
|
+
width="20"
|
|
23
|
+
height="20"
|
|
24
|
+
viewBox="0 0 24 24"
|
|
25
|
+
fill="currentColor"
|
|
26
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
27
|
+
>
|
|
28
|
+
<path d="M19 0h-14c-2.761 0-5 2.239-5 5v14c0 2.761 2.239 5 5 5h14c2.762 0 5-2.239 5-5v-14c0-2.761-2.238-5-5-5zm-11 19h-3v-11h3v11zm-1.5-12.268c-.966 0-1.75-.79-1.75-1.764s.784-1.764 1.75-1.764 1.75.79 1.75 1.764-.783 1.764-1.75 1.764zm13.5 12.268h-3v-5.604c0-3.368-4-3.113-4 0v5.604h-3v-11h3v1.765c1.396-2.586 7-2.777 7 2.476v6.759z" />
|
|
29
|
+
</svg>
|
|
30
|
+
|
|
31
|
+
<span>Sign in with LinkedIn</span>
|
|
32
|
+
</Button>
|
|
33
|
+
);
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export default LinkedInOAuthButton;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import { authClient } from "@/lib/auth-client";
|
|
4
|
+
import { Button } from "../ui/button";
|
|
5
|
+
|
|
6
|
+
const TwitterOAuthButton = () => {
|
|
7
|
+
const signIn = async () => {
|
|
8
|
+
await authClient.signIn.social({
|
|
9
|
+
provider: "twitter",
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
return (
|
|
14
|
+
<Button
|
|
15
|
+
className="w-full text-base flex items-center gap-2"
|
|
16
|
+
variant="outline"
|
|
17
|
+
onClick={signIn}
|
|
18
|
+
>
|
|
19
|
+
<svg
|
|
20
|
+
width="20"
|
|
21
|
+
height="20"
|
|
22
|
+
viewBox="0 0 24 24"
|
|
23
|
+
fill="currentColor"
|
|
24
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
25
|
+
>
|
|
26
|
+
<path d="M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932L18.901 1.153zM17.61 20.644h2.039L6.486 3.24H4.298l13.312 17.404z" />
|
|
27
|
+
</svg>
|
|
28
|
+
|
|
29
|
+
<span>Sign in with twitter(x)</span>
|
|
30
|
+
</Button>
|
|
31
|
+
);
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export default TwitterOAuthButton;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "authverse",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.7-beta.2",
|
|
4
4
|
"description": "Authverse Fast modern CLI to generate full auth systems with OAuth Prisma Drizzle better auth and ready-to-use ShadCN UI screens",
|
|
5
5
|
"repository": {
|
|
6
6
|
"url": "git+https://github.com/abdirahmanmahamoud/authverse.git",
|