Compare commits

..

10 Commits

Author SHA1 Message Date
GitHub Actions
c6f5c4d1cf chore(release): bump package version(s) [skip ci] 2022-12-31 11:09:43 +00:00
Balázs Orbán
09a075cc7e fix(core): loosen dependency version requirements 2022-12-31 12:05:23 +01:00
Balázs Orbán
f1475955ea chore: solidstart -> solid-start 2022-12-31 11:53:29 +01:00
Balázs Orbán
e6f48775fa chore: add packages to docs build dependency list 2022-12-31 11:44:40 +01:00
Balázs Orbán
ba87e86d47 chore: update lock file 2022-12-31 11:42:08 +01:00
Balázs Orbán
b0dd1fac93 chore: disable solid start example sync (temp) 2022-12-31 11:34:49 +01:00
Balázs Orbán
054288316b chore(examples): rename solid-start to solidstart 2022-12-31 11:31:47 +01:00
Balázs Orbán
5e02019a3c chore: what is yaml 2022-12-31 10:23:17 +00:00
Balázs Orbán
9da0e66193 chore: fix indent 2022-12-31 10:20:48 +00:00
OrJDev
287c8f0f91 feat(solid-start): introduce @auth/solid-start package/example (#6158)
* feat: add solid framework package and example

* solidstart docs

* Update 02-oauth-tutorial.mdx

* minor docs fixes

* Fix sidebar typo

* Update sync.yml

* Update sidebars.js

* minor fixes

* fix deps

* upgrade auth example

* Update root.tsx

* Update NavBar.tsx

* Update Protected.tsx

* protected

* move example

* Update sidebars.js

Co-authored-by: Balázs Orbán <info@balazsorban.com>
Co-authored-by: Nico Domino <yo@ndo.dev>
2022-12-31 10:15:31 +00:00
33 changed files with 46 additions and 8753 deletions

15
.github/sync.yml vendored
View File

@@ -7,12 +7,15 @@ nextauthjs/sveltekit-auth-example:
- .github/FUNDING.yml - .github/FUNDING.yml
- LICENSE - LICENSE
nextauthjs/solid-start-auth-example: # FIXME: Should re-enable, but currently fails:
- source: apps/example-solid-start # https://github.com/nextauthjs/next-auth/actions/runs/3811709391/jobs/6484533340
dest: . # (issue seems to be the name of the target repo)
deleteOrphaned: true # nextauthjs/solid-start-auth-example:
- .github/FUNDING.yml # - source: "apps/examples/solid-start"
- LICENSE # dest: .
# deleteOrphaned: true
# - .github/FUNDING.yml
# - LICENSE
nextauthjs/next-auth-gatsby-example: nextauthjs/next-auth-gatsby-example:
- source: apps/playgrounds/gatsby - source: apps/playgrounds/gatsby

File diff suppressed because it is too large Load Diff

View File

Before

Width:  |  Height:  |  Size: 664 B

After

Width:  |  Height:  |  Size: 664 B

View File

@@ -58,9 +58,9 @@ module.exports = {
label: "@auth/solid-start", label: "@auth/solid-start",
link: { link: {
type: "doc", type: "doc",
id: "reference/solidstart/index", id: "reference/solid-start/index",
}, },
items: ["reference/solidstart/client"], items: ["reference/solid-start/client", "reference/solid-start/protected"],
}, },
{ {
type: "category", type: "category",

View File

@@ -70,6 +70,16 @@
], ],
"destination": "https://authjs.dev/reference/sveltekit/modules/main" "destination": "https://authjs.dev/reference/sveltekit/modules/main"
}, },
{
"source": "/",
"has": [
{
"type": "host",
"value": "solid-start.authjs.dev"
}
],
"destination": "https://authjs.dev/reference/solid-start"
},
{ {
"source": "/:path(.*)", "source": "/:path(.*)",
"has": [ "has": [

View File

@@ -1,6 +1,6 @@
{ {
"name": "@auth/core", "name": "@auth/core",
"version": "0.2.3", "version": "0.2.4",
"description": "Authentication for the Web.", "description": "Authentication for the Web.",
"keywords": [ "keywords": [
"authentication", "authentication",
@@ -61,10 +61,10 @@
}, },
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"@panva/hkdf": "1.0.2", "@panva/hkdf": "^1.0.2",
"cookie": "0.5.0", "cookie": "0.5.0",
"jose": "4.11.1", "jose": "^4.11.1",
"oauth4webapi": "2.0.6", "oauth4webapi": "^2.0.6",
"preact": "10.11.3", "preact": "10.11.3",
"preact-render-to-string": "5.2.3" "preact-render-to-string": "5.2.3"
}, },
@@ -92,4 +92,4 @@
"postcss": "8.4.19", "postcss": "8.4.19",
"postcss-nested": "6.0.0" "postcss-nested": "6.0.0"
} }
} }

View File

@@ -1,7 +1,7 @@
{ {
"name": "@auth/solid-start", "name": "@auth/solid-start",
"description": "Authentication for SolidStart.", "description": "Authentication for SolidStart.",
"version": "0.0.1", "version": "0.1.0",
"type": "module", "type": "module",
"files": [ "files": [
"client.*", "client.*",
@@ -55,4 +55,4 @@
"author": "OrJDev <orjdeveloper@gmail.com>", "author": "OrJDev <orjdeveloper@gmail.com>",
"repository": "https://github.com/nextauthjs/next-auth", "repository": "https://github.com/nextauthjs/next-auth",
"license": "ISC" "license": "ISC"
} }

View File

@@ -1,6 +1,6 @@
{ {
"name": "@auth/sveltekit", "name": "@auth/sveltekit",
"version": "0.1.10", "version": "0.1.11",
"description": "Authentication for SvelteKit.", "description": "Authentication for SvelteKit.",
"keywords": [ "keywords": [
"authentication", "authentication",
@@ -69,4 +69,4 @@
}, },
"./package.json": "./package.json" "./package.json": "./package.json"
} }
} }

34
pnpm-lock.yaml generated
View File

@@ -577,15 +577,15 @@ importers:
packages/core: packages/core:
specifiers: specifiers:
'@next-auth/tsconfig': workspace:* '@next-auth/tsconfig': workspace:*
'@panva/hkdf': 1.0.2 '@panva/hkdf': ^1.0.2
'@types/cookie': 0.5.1 '@types/cookie': 0.5.1
'@types/node': 18.11.10 '@types/node': 18.11.10
'@types/nodemailer': 6.4.6 '@types/nodemailer': 6.4.6
'@types/react': 18.0.26 '@types/react': 18.0.26
autoprefixer: 10.4.13 autoprefixer: 10.4.13
cookie: 0.5.0 cookie: 0.5.0
jose: 4.11.1 jose: ^4.11.1
oauth4webapi: 2.0.6 oauth4webapi: ^2.0.6
postcss: 8.4.19 postcss: 8.4.19
postcss-nested: 6.0.0 postcss-nested: 6.0.0
preact: 10.11.3 preact: 10.11.3
@@ -13093,10 +13093,8 @@ packages:
indent-string: 4.0.0 indent-string: 4.0.0
dev: true dev: true
/ajv-formats/2.1.1_ajv@8.11.0: /ajv-formats/2.1.1:
resolution: {integrity: sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==} resolution: {integrity: sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==}
peerDependencies:
ajv: ^8.0.0
peerDependenciesMeta: peerDependenciesMeta:
ajv: ajv:
optional: true optional: true
@@ -13606,7 +13604,7 @@ packages:
/axios/0.21.4_debug@3.2.7: /axios/0.21.4_debug@3.2.7:
resolution: {integrity: sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==} resolution: {integrity: sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==}
dependencies: dependencies:
follow-redirects: 1.15.1_debug@3.2.7 follow-redirects: 1.15.1
transitivePeerDependencies: transitivePeerDependencies:
- debug - debug
dev: false dev: false
@@ -13630,7 +13628,7 @@ packages:
/axios/0.25.0_debug@4.3.4: /axios/0.25.0_debug@4.3.4:
resolution: {integrity: sha512-cD8FOb0tRH3uuEe6+evtAbgJtfxr7ly3fQjYcMcuPlgkwVS9xboaVIpcDV+cYQe+yGykgwZCs1pzjntcGa6l5g==} resolution: {integrity: sha512-cD8FOb0tRH3uuEe6+evtAbgJtfxr7ly3fQjYcMcuPlgkwVS9xboaVIpcDV+cYQe+yGykgwZCs1pzjntcGa6l5g==}
dependencies: dependencies:
follow-redirects: 1.15.1_debug@4.3.4 follow-redirects: 1.15.1
transitivePeerDependencies: transitivePeerDependencies:
- debug - debug
@@ -18690,7 +18688,7 @@ packages:
dependencies: dependencies:
'@apidevtools/json-schema-ref-parser': 9.0.9 '@apidevtools/json-schema-ref-parser': 9.0.9
ajv: 8.11.0 ajv: 8.11.0
ajv-formats: 2.1.1_ajv@8.11.0 ajv-formats: 2.1.1
body-parser: 1.20.0 body-parser: 1.20.0
content-type: 1.0.4 content-type: 1.0.4
deep-freeze: 0.0.1 deep-freeze: 0.0.1
@@ -19296,19 +19294,6 @@ packages:
peerDependenciesMeta: peerDependenciesMeta:
debug: debug:
optional: true optional: true
dev: true
/follow-redirects/1.15.1_debug@3.2.7:
resolution: {integrity: sha512-yLAMQs+k0b2m7cVxpS1VKJVvoz7SS9Td1zss3XRwXj+ZDH00RJgnuLx7E44wx02kQLrdM3aOOy+FpzS7+8OizA==}
engines: {node: '>=4.0'}
peerDependencies:
debug: '*'
peerDependenciesMeta:
debug:
optional: true
dependencies:
debug: 3.2.7
dev: false
/follow-redirects/1.15.1_debug@4.3.4: /follow-redirects/1.15.1_debug@4.3.4:
resolution: {integrity: sha512-yLAMQs+k0b2m7cVxpS1VKJVvoz7SS9Td1zss3XRwXj+ZDH00RJgnuLx7E44wx02kQLrdM3aOOy+FpzS7+8OizA==} resolution: {integrity: sha512-yLAMQs+k0b2m7cVxpS1VKJVvoz7SS9Td1zss3XRwXj+ZDH00RJgnuLx7E44wx02kQLrdM3aOOy+FpzS7+8OizA==}
@@ -19320,6 +19305,7 @@ packages:
optional: true optional: true
dependencies: dependencies:
debug: 4.3.4 debug: 4.3.4
dev: true
/for-each/0.3.3: /for-each/0.3.3:
resolution: {integrity: sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==} resolution: {integrity: sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==}
@@ -21106,7 +21092,7 @@ packages:
engines: {node: '>=8.0.0'} engines: {node: '>=8.0.0'}
dependencies: dependencies:
eventemitter3: 4.0.7 eventemitter3: 4.0.7
follow-redirects: 1.15.1_debug@4.3.4 follow-redirects: 1.15.1
requires-port: 1.0.0 requires-port: 1.0.0
transitivePeerDependencies: transitivePeerDependencies:
- debug - debug
@@ -29489,7 +29475,7 @@ packages:
dependencies: dependencies:
'@types/json-schema': 7.0.11 '@types/json-schema': 7.0.11
ajv: 8.11.0 ajv: 8.11.0
ajv-formats: 2.1.1_ajv@8.11.0 ajv-formats: 2.1.1
ajv-keywords: 5.1.0_ajv@8.11.0 ajv-keywords: 5.1.0_ajv@8.11.0
dev: true dev: true

View File

@@ -2,7 +2,12 @@
"$schema": "https://turborepo.org/schema.json", "$schema": "https://turborepo.org/schema.json",
"pipeline": { "pipeline": {
"docs#build": { "docs#build": {
"dependsOn": ["^build", "next-auth#build"] "dependsOn": [
"^build",
"next-auth#build",
"@auth/core#build",
"@auth/sveltekit#build"
]
}, },
"build": { "build": {
"dependsOn": ["^build"] "dependsOn": ["^build"]