authverse 1.0.4 → 1.0.6-canary.1

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.
@@ -2,18 +2,45 @@
2
2
 
3
3
  import { authClient } from "@/lib/auth-client";
4
4
  import { Button } from "../ui/button";
5
- import { FaGoogle } from "react-icons/fa";
6
5
 
7
6
  const GoogleProviders = () => {
8
7
  const signIn = async () => {
9
- const data = await authClient.signIn.social({
8
+ await authClient.signIn.social({
10
9
  provider: "google",
11
10
  });
12
11
  };
12
+
13
13
  return (
14
- <Button className="w-full text-base" variant="outline" onClick={signIn}>
15
- <FaGoogle />
16
- Sign in with Google
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 48 48"
23
+ xmlns="http://www.w3.org/2000/svg"
24
+ >
25
+ <path
26
+ fill="#EA4335"
27
+ d="M24 9.5c3.54 0 6.7 1.23 9.2 3.64l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.2C12.43 13.02 17.74 9.5 24 9.5z"
28
+ />
29
+ <path
30
+ fill="#4285F4"
31
+ d="M46.98 24.55c0-1.64-.15-3.22-.43-4.76H24v9.02h12.95c-.56 3.01-2.24 5.56-4.78 7.28l7.73 5.99c4.51-4.18 7.08-10.35 7.08-17.53z"
32
+ />
33
+ <path
34
+ fill="#FBBC05"
35
+ d="M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.2C.92 16.46 0 20.12 0 24s.92 7.54 2.56 10.79l7.97-6.2z"
36
+ />
37
+ <path
38
+ fill="#34A853"
39
+ d="M24 48c6.48 0 11.93-2.13 15.9-5.81l-7.73-5.99c-2.15 1.45-4.9 2.3-8.17 2.3-6.26 0-11.57-3.52-13.46-8.59l-7.97 6.2C6.51 42.62 14.62 48 24 48z"
40
+ />
41
+ </svg>
42
+
43
+ <span>Sign in with Google</span>
17
44
  </Button>
18
45
  );
19
46
  };
@@ -0,0 +1,60 @@
1
+ model User {
2
+ id String @id @default(auto()) @map("_id") @db.ObjectId
3
+ name String
4
+ email String
5
+ emailVerified Boolean @default(false)
6
+ image String?
7
+ createdAt DateTime @default(now())
8
+ updatedAt DateTime @updatedAt
9
+ sessions Session[]
10
+ accounts Account[]
11
+
12
+ @@unique([email])
13
+ @@map("users") // Typically plural for collections
14
+ }
15
+
16
+ model Session {
17
+ id String @id @default(auto()) @map("_id") @db.ObjectId
18
+ expiresAt DateTime
19
+ token String @unique
20
+ createdAt DateTime @default(now())
21
+ updatedAt DateTime @updatedAt
22
+ ipAddress String?
23
+ userAgent String?
24
+ userId String @db.ObjectId
25
+ user User @relation(fields: [userId], references: [id], onDelete: Cascade)
26
+
27
+ @@map("sessions")
28
+ }
29
+
30
+ model Account {
31
+ id String @id @default(auto()) @map("_id") @db.ObjectId
32
+ accountId String
33
+ providerId String
34
+ userId String @db.ObjectId
35
+ user User @relation(fields: [userId], references: [id], onDelete: Cascade)
36
+ accessToken String?
37
+ refreshToken String?
38
+ idToken String?
39
+ accessTokenExpiresAt DateTime?
40
+ refreshTokenExpiresAt DateTime?
41
+ scope String?
42
+ password String?
43
+ createdAt DateTime @default(now())
44
+ updatedAt DateTime @updatedAt
45
+
46
+ @@unique([providerId, accountId])
47
+ @@map("accounts")
48
+ }
49
+
50
+ model Verification {
51
+ id String @id @default(auto()) @map("_id") @db.ObjectId
52
+ identifier String
53
+ value String
54
+ expiresAt DateTime
55
+ createdAt DateTime? @default(now())
56
+ updatedAt DateTime? @updatedAt
57
+
58
+ @@unique([identifier, value])
59
+ @@map("verifications")
60
+ }
@@ -0,0 +1,59 @@
1
+ model User {
2
+ id String @id @default(cuid())
3
+ name String
4
+ email String @unique
5
+ emailVerified Boolean @default(false)
6
+ image String?
7
+ createdAt DateTime @default(now())
8
+ updatedAt DateTime @updatedAt
9
+ sessions Session[]
10
+ accounts Account[]
11
+
12
+ @@map("users")
13
+ }
14
+
15
+ model Session {
16
+ id String @id @default(cuid())
17
+ expiresAt DateTime
18
+ token String @unique
19
+ createdAt DateTime @default(now())
20
+ updatedAt DateTime @updatedAt
21
+ ipAddress String?
22
+ userAgent String?
23
+ userId String
24
+ user User @relation(fields: [userId], references: [id], onDelete: Cascade)
25
+
26
+ @@map("sessions")
27
+ }
28
+
29
+ model Account {
30
+ id String @id @default(cuid())
31
+ accountId String
32
+ providerId String
33
+ userId String
34
+ user User @relation(fields: [userId], references: [id], onDelete: Cascade)
35
+ accessToken String?
36
+ refreshToken String?
37
+ idToken String?
38
+ accessTokenExpiresAt DateTime?
39
+ refreshTokenExpiresAt DateTime?
40
+ scope String?
41
+ password String?
42
+ createdAt DateTime @default(now())
43
+ updatedAt DateTime @updatedAt
44
+
45
+ @@unique([providerId, accountId])
46
+ @@map("accounts")
47
+ }
48
+
49
+ model Verification {
50
+ id String @id @default(cuid())
51
+ identifier String
52
+ value String
53
+ expiresAt DateTime
54
+ createdAt DateTime? @default(now())
55
+ updatedAt DateTime? @updatedAt
56
+
57
+ @@unique([identifier, value])
58
+ @@map("verifications")
59
+ }
@@ -0,0 +1,59 @@
1
+ model User {
2
+ id String @id
3
+ name String
4
+ email String
5
+ emailVerified Boolean
6
+ image String?
7
+ createdAt DateTime
8
+ updatedAt DateTime
9
+ sessions Session[]
10
+ accounts Account[]
11
+
12
+ @@unique([email])
13
+ @@map("user")
14
+ }
15
+
16
+ model Session {
17
+ id String @id
18
+ expiresAt DateTime
19
+ token String
20
+ createdAt DateTime
21
+ updatedAt DateTime
22
+ ipAddress String?
23
+ userAgent String?
24
+ userId String
25
+ user User @relation(fields: [userId], references: [id], onDelete: Cascade)
26
+
27
+ @@unique([token])
28
+ @@map("session")
29
+ }
30
+
31
+ model Account {
32
+ id String @id
33
+ accountId String
34
+ providerId String
35
+ userId String
36
+ user User @relation(fields: [userId], references: [id], onDelete: Cascade)
37
+ accessToken String?
38
+ refreshToken String?
39
+ idToken String?
40
+ accessTokenExpiresAt DateTime?
41
+ refreshTokenExpiresAt DateTime?
42
+ scope String?
43
+ password String?
44
+ createdAt DateTime
45
+ updatedAt DateTime
46
+
47
+ @@map("account")
48
+ }
49
+
50
+ model Verification {
51
+ id String @id
52
+ identifier String
53
+ value String
54
+ expiresAt DateTime
55
+ createdAt DateTime?
56
+ updatedAt DateTime?
57
+
58
+ @@map("verification")
59
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "authverse",
3
- "version": "1.0.4",
3
+ "version": "1.0.6-canary.1",
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"
@@ -53,7 +53,7 @@
53
53
  "@semantic-release/github": "^12.0.2",
54
54
  "@semantic-release/npm": "^13.1.2",
55
55
  "@semantic-release/release-notes-generator": "^14.1.0",
56
- "@types/node": "^25.0.1",
56
+ "@types/node": "^25.0.3",
57
57
  "conventional-changelog-conventionalcommits": "^9.1.0",
58
58
  "semantic-release": "^25.0.2",
59
59
  "tsup": "^8.5.0",