Skip to content

Commit

Permalink
docs: fix dep issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Bekacru committed Sep 27, 2024
1 parent 08aa80c commit bfa1337
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 107 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,11 @@
## About the Project

### Why Better Auth?
Better Auth is framework-agnostic authentication (and authorization) library for TypeScript. It provides a comprehensive set of features out of the box and includes a plugin ecosystem that simplifies adding advanced functionalities with minimal code and very short amount time. Whether you need 2FA, multi-tenant support, or other complex features. It lets you focus on building your actual application instead of reinventing the wheel.

Currently, most open-source libraries handle basic authentication, but when you need something more, they often require a lot of additional code. When that happens, instead of just suggesting 3rd party services (which are the right choice in some cases), I think we can do better as a community—hence, Better Auth.
### Why Better Auth

Currently, the open-source libraries in the ecosystem often require a lot of additional code if you want anything beyond a basic login. Instead of just suggesting 3rd party services when that happens (which can be still be the right choice at times), I think we can do better as a community—hence, Better Auth.

### Goals
****
Expand Down
1 change: 1 addition & 0 deletions docs/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
NEXT_PUBLIC_URL=http://localhost:3000
4 changes: 2 additions & 2 deletions docs/app/docs/[[...slug]]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export async function generateStaticParams() {
export function generateMetadata({ params }: { params: { slug?: string[] } }) {
const page = getPage(params.slug);
if (page == null) notFound();
const baseUrl = process.env.NEXT_APP_PUBLIC_URL;
const baseUrl = process.env.NEXT_APP_PUBLIC_URL || process.env.VERCEL_URL;
const url = new URL(`${baseUrl}/api/og`);
const { title, description } = page.data;
const pageSlug = page.file.path;
Expand All @@ -64,7 +64,7 @@ export function generateMetadata({ params }: { params: { slug?: string[] } }) {
openGraph: {
title,
description,
type: "Documentation",
type: "website",
url: absoluteUrl(`docs/${pageSlug}`),
images: [
{
Expand Down
6 changes: 3 additions & 3 deletions docs/content/docs/installation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,7 @@ export const auth = betterAuth({
} // [!code highlight]
})
```

<Callout type="info">
You can also pass any dialect that is supported by Kysely to the database configration.
</Callout>

**Example with LibsqlDialect:**

Expand All @@ -99,6 +96,9 @@ export const auth = betterAuth({
});
```

<Callout>
Currently, Better Auth only support databases that are supported by Kysely. [vote this issue if you like to see non sql db support](https://github.com/better-auth/better-auth/issues/5)
</Callout>
</Step>

<Step>
Expand Down
7 changes: 3 additions & 4 deletions docs/content/docs/introduction.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,16 @@ title: Introduction
description: Introduction to Better Auth.
---

Better Auth is framework-agnostic authentication and authorization library for TypeScript. It provides a comprehensive set of features out of the box and includes a plugin ecosystem that simplifies adding advanced functionalities with minimal code. Whether you need 2FA, multi-tenant support, or other complex features. It lets you focus on building your app instead of reinventing the wheel.
Better Auth is framework-agnostic authentication (and authorization) library for TypeScript. It provides a comprehensive set of features out of the box and includes a plugin ecosystem that simplifies adding advanced functionalities with minimal code and very short amount time. Whether you need 2FA, multi-tenant support, or other complex features. It lets you focus on building your actual application instead of reinventing the wheel.

## Why Better Auth?

> Currently, most open-source libraries handle basic authentication, but when you need something more, they often require a lot of additional code. When that happens, instead of just suggesting 3rd party services (which are the right choice in some cases), I think we can do better as a community—hence, Better Auth.
Currently, the open-source libraries in the ecosystem often require a lot of additional code if you want anything beyond a basic login. Instead of just suggesting 3rd party services when that happens (which can be still be the right choice at times), I think we can do better as a community—hence, Better Auth.

## Features

Better auth is aims to be the most comprehensive auth library. It provides a wide range of features out of the box and allows you to extend it with plugins. Here are some of the features:

<Features/>

and much more and even more to come...

and much more and even more to come...
1 change: 0 additions & 1 deletion packages/better-auth/src/adapters/index.ts

This file was deleted.

95 changes: 0 additions & 95 deletions packages/better-auth/src/adapters/prisma.ts

This file was deleted.

0 comments on commit bfa1337

Please sign in to comment.