Skip to content

Commit

Permalink
Docs: Update examples (#1610)
Browse files Browse the repository at this point in the history
  • Loading branch information
pilcrowOnPaper committed Jun 22, 2024
1 parent 2c3efa0 commit 0630ea5
Show file tree
Hide file tree
Showing 11 changed files with 17 additions and 68 deletions.
2 changes: 1 addition & 1 deletion docs/pages/getting-started/astro.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,6 @@ declare namespace App {

You can learn all the concepts and APIs by reading the [Basics section](/basics/sessions) in the docs. If you prefer writing code immediately, check out the [Tutorials](/tutorials) page or the [examples repository](https://github.com/lucia-auth/examples/tree/main).

This documentation often references [the Copenhagen Book](https://thecopenhagenbook.com/mfa). This is an open-source guide on implementing auth and should come in handy when implementing anything auth, including passkeys, multi-factor authentication, and a bit of cryptography. We recommend reading it to learn more about auth in web applications.
This documentation often references [the Copenhagen Book](https://thecopenhagenbook.com). This is an open-source guide on implementing auth and should come in handy when implementing anything auth, including passkeys, multi-factor authentication, and a bit of cryptography. We recommend reading it to learn more about auth in web applications.

If you have any questions, [join our Discord server](https://discord.com/invite/PwrK3kpVR3)!
61 changes: 0 additions & 61 deletions docs/pages/getting-started/express.md

This file was deleted.

4 changes: 3 additions & 1 deletion docs/pages/getting-started/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ A framework-specific guide is also available for:
- [SolidStart](/getting-started/solidstart)
- [SvelteKit](/getting-started/sveltekit)

Example projects for Astro, Express, Hono, Next.js App Router, Next.js Pages Router, Nuxt, and SvelteKit are available in the [example repository](https://github.com/lucia-auth/examples).

## Installation

Install Lucia using your package manager of your choice.
Expand Down Expand Up @@ -64,4 +66,4 @@ node --experimental-web-crypto index.js

## The Copenhagen Book

This documentation often references [the Copenhagen Book](https://thecopenhagenbook.com/mfa). This is an open-source guide on implementing auth and should come in handy when implementing anything auth, including passkeys, multi-factor authentication, and a bit of cryptography. We recommend reading it to learn more about auth in web applications.
This documentation often references [the Copenhagen Book](https://thecopenhagenbook.com). This is an open-source guide on implementing auth and should come in handy when implementing anything auth, including passkeys, multi-factor authentication, and a bit of cryptography. We recommend reading it to learn more about auth in web applications.
2 changes: 1 addition & 1 deletion docs/pages/getting-started/nextjs-app.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,6 @@ node --experimental-web-crypto index.js

You can learn all the concepts and APIs by reading the [Basics section](/basics/sessions) in the docs. If you prefer writing code immediately, check out the [Tutorials](/tutorials) page or the [examples repository](https://github.com/lucia-auth/examples/tree/main).

This documentation often references [the Copenhagen Book](https://thecopenhagenbook.com/mfa). This is an open-source guide on implementing auth and should come in handy when implementing anything auth, including passkeys, multi-factor authentication, and a bit of cryptography. We recommend reading it to learn more about auth in web applications.
This documentation often references [the Copenhagen Book](https://thecopenhagenbook.com). This is an open-source guide on implementing auth and should come in handy when implementing anything auth, including passkeys, multi-factor authentication, and a bit of cryptography. We recommend reading it to learn more about auth in web applications.

If you have any questions, [join our Discord server](https://discord.com/invite/PwrK3kpVR3)!
2 changes: 1 addition & 1 deletion docs/pages/getting-started/nextjs-pages.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,6 @@ export async function middleware(request: NextRequest): Promise<NextResponse> {

You can learn all the concepts and APIs by reading the [Basics section](/basics/sessions) in the docs. If you prefer writing code immediately, check out the [Tutorials](/tutorials) page or the [examples repository](https://github.com/lucia-auth/examples/tree/main).

This documentation often references [the Copenhagen Book](https://thecopenhagenbook.com/mfa). This is an open-source guide on implementing auth and should come in handy when implementing anything auth, including passkeys, multi-factor authentication, and a bit of cryptography. We recommend reading it to learn more about auth in web applications.
This documentation often references [the Copenhagen Book](https://thecopenhagenbook.com). This is an open-source guide on implementing auth and should come in handy when implementing anything auth, including passkeys, multi-factor authentication, and a bit of cryptography. We recommend reading it to learn more about auth in web applications.

If you have any questions, [join our Discord server](https://discord.com/invite/PwrK3kpVR3)!
2 changes: 1 addition & 1 deletion docs/pages/getting-started/nuxt.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,6 @@ declare module "h3" {

You can learn all the concepts and APIs by reading the [Basics section](/basics/sessions) in the docs. If you prefer writing code immediately, check out the [Tutorials](/tutorials) page or the [examples repository](https://github.com/lucia-auth/examples/tree/main).

This documentation often references [the Copenhagen Book](https://thecopenhagenbook.com/mfa). This is an open-source guide on implementing auth and should come in handy when implementing anything auth, including passkeys, multi-factor authentication, and a bit of cryptography. We recommend reading it to learn more about auth in web applications.
This documentation often references [the Copenhagen Book](https://thecopenhagenbook.com). This is an open-source guide on implementing auth and should come in handy when implementing anything auth, including passkeys, multi-factor authentication, and a bit of cryptography. We recommend reading it to learn more about auth in web applications.

If you have any questions, [join our Discord server](https://discord.com/invite/PwrK3kpVR3)!
2 changes: 1 addition & 1 deletion docs/pages/getting-started/solidstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,6 @@ export default defineConfig({

You can learn all the concepts and APIs by reading the [Basics section](/basics/sessions) in the docs. If you prefer writing code immediately, check out the [Tutorials](/tutorials) page or the [examples repository](https://github.com/lucia-auth/examples/tree/main).

This documentation often references [the Copenhagen Book](https://thecopenhagenbook.com/mfa). This is an open-source guide on implementing auth and should come in handy when implementing anything auth, including passkeys, multi-factor authentication, and a bit of cryptography. We recommend reading it to learn more about auth in web applications.
This documentation often references [the Copenhagen Book](https://thecopenhagenbook.com). This is an open-source guide on implementing auth and should come in handy when implementing anything auth, including passkeys, multi-factor authentication, and a bit of cryptography. We recommend reading it to learn more about auth in web applications.

If you have any questions, [join our Discord server](https://discord.com/invite/PwrK3kpVR3)!
2 changes: 1 addition & 1 deletion docs/pages/getting-started/sveltekit.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,6 @@ export {};

You can learn all the concepts and APIs by reading the [Basics section](/basics/sessions) in the docs. If you prefer writing code immediately, check out the [Tutorials](/tutorials) page or the [examples repository](https://github.com/lucia-auth/examples/tree/main).

This documentation often references [the Copenhagen Book](https://thecopenhagenbook.com/mfa). This is an open-source guide on implementing auth and should come in handy when implementing anything auth, including passkeys, multi-factor authentication, and a bit of cryptography. We recommend reading it to learn more about auth in web applications.
This documentation often references [the Copenhagen Book](https://thecopenhagenbook.com). This is an open-source guide on implementing auth and should come in handy when implementing anything auth, including passkeys, multi-factor authentication, and a bit of cryptography. We recommend reading it to learn more about auth in web applications.

If you have any questions, [join our Discord server](https://discord.com/invite/PwrK3kpVR3)!
2 changes: 2 additions & 0 deletions docs/pages/tutorials/github-oauth/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ The tutorials go over how to implement a basic GitHub OAuth and cover the basics
- [Next.js Pages router](/tutorials/github-oauth/nextjs-pages)
- [Nuxt](/tutorials/github-oauth/nuxt)
- [SvelteKit](/tutorials/github-oauth/sveltekit)

Example projects for [Express](https://github.com/lucia-auth/examples/tree/main/express/github-oauth) and [Hono](https://github.com/lucia-auth/examples/tree/main/hono/github-oauth) are also available.
4 changes: 4 additions & 0 deletions docs/pages/tutorials/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ Learn to set up GitHub OAuth, handle authentication, and manage user sessions.
- [Nuxt](/tutorials/github-oauth/nuxt)
- [SvelteKit](/tutorials/github-oauth/sveltekit)

Example projects for [Express](https://github.com/lucia-auth/examples/tree/main/express/github-oauth) and [Hono](https://github.com/lucia-auth/examples/tree/main/hono/github-oauth) are also available.

## Username and Password

Understand how to implement a secure username and password authentication system.
Expand All @@ -25,3 +27,5 @@ Understand how to implement a secure username and password authentication system
- [Next.js Pages router](/tutorials/username-and-password/nextjs-pages)
- [Nuxt](/tutorials/username-and-password/nuxt)
- [SvelteKit](/tutorials/username-and-password/sveltekit)

Example projects for [Express](https://github.com/lucia-auth/examples/tree/main/express/username-and-password) and [Hono](https://github.com/lucia-auth/examples/tree/main/hono/username-and-password) are also available.
2 changes: 2 additions & 0 deletions docs/pages/tutorials/username-and-password/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ The tutorials go over how to implement a basic username and password auth and co
- [Next.js Pages router](/tutorials/username-and-password/nextjs-pages)
- [Nuxt](/tutorials/username-and-password/nuxt)
- [SvelteKit](/tutorials/username-and-password/sveltekit)

Example projects for [Express](https://github.com/lucia-auth/examples/tree/main/express/username-and-password) and [Hono](https://github.com/lucia-auth/examples/tree/main/hono/username-and-password) are also available.

0 comments on commit 0630ea5

Please sign in to comment.