Skip to content

Commit

Permalink
Make application options optional
Browse files Browse the repository at this point in the history
  • Loading branch information
markusahlstrand committed Sep 3, 2024
1 parent e72ced9 commit 6711e41
Show file tree
Hide file tree
Showing 11 changed files with 60 additions and 15 deletions.
6 changes: 6 additions & 0 deletions apps/demo/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @authhero/demo

## 0.0.22

### Patch Changes

- [email protected]

## 0.0.21

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion apps/demo/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@authhero/demo",
"private": true,
"version": "0.0.21",
"version": "0.0.22",
"scripts": {
"dev": "bun --watch src/bun.ts"
},
Expand Down
6 changes: 6 additions & 0 deletions packages/adapter-interfaces/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @authhero/adapter-interfaces

## 0.15.1

### Patch Changes

- Make options optional

## 0.15.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/adapter-interfaces/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"type": "git",
"url": "https://github.com/markusahlstrand/authhero"
},
"version": "0.15.0",
"version": "0.15.1",
"files": [
"dist"
],
Expand Down
32 changes: 22 additions & 10 deletions packages/adapter-interfaces/src/types/Connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,29 @@ export const connectionInsertSchema = z.object({
id: z.string().optional(),
name: z.string(),
strategy: z
.enum(["google-oauth2", "facebook", "vipps", "apple", "email"])
.enum([
"google-oauth2",
"facebook",
"vipps",
"apple",
"email",
"Username-Password-Authentication",
"oidc",
"oauth2",
"custom",
])
.optional(),
options: z
.object({
kid: z.string().optional(),
team_id: z.string().optional(),
realms: z.string().optional(),
client_id: z.string().optional(),
client_secret: z.string().optional(),
app_secret: z.string().optional(),
scope: z.string().optional(),
})
.optional(),
options: z.object({
kid: z.string().optional(),
team_id: z.string().optional(),
realms: z.string().optional(),
client_id: z.string().optional(),
client_secret: z.string().optional(),
app_secret: z.string().optional(),
scope: z.string().optional(),
}),
enabled_clients: z.array(z.string()).optional(),
authorization_endpoint: z.string().optional(),
response_type: z.custom<AuthorizationResponseType>().optional(),
Expand Down
7 changes: 7 additions & 0 deletions packages/authhero/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# authhero

## 0.2.24

### Patch Changes

- Updated dependencies
- @authhero/adapter-interfaces@0.15.1

## 0.2.23

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/authhero/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "authhero",
"version": "0.2.23",
"version": "0.2.24",
"files": [
"dist"
],
Expand Down
7 changes: 7 additions & 0 deletions packages/drizzle/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @authhero/drizzle

## 0.1.40

### Patch Changes

- Updated dependencies
- @authhero/adapter-interfaces@0.15.1

## 0.1.39

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/drizzle/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"type": "git",
"url": "https://github.com/markusahlstrand/authhero"
},
"version": "0.1.39",
"version": "0.1.40",
"files": [
"dist"
],
Expand Down
7 changes: 7 additions & 0 deletions packages/kysely/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @authhero/kysely-adapter

## 0.9.1

### Patch Changes

- Updated dependencies
- @authhero/adapter-interfaces@0.15.1

## 0.9.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/kysely/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"type": "git",
"url": "https://github.com/markusahlstrand/authhero"
},
"version": "0.9.0",
"version": "0.9.1",
"files": [
"dist"
],
Expand Down

0 comments on commit 6711e41

Please sign in to comment.