Skip to content

Commit

Permalink
broken md-pages (PR from TinaCMS) (#2434)
Browse files Browse the repository at this point in the history
* TinaCMS content update

Co-authored-by: Isaac Lombard <[email protected]>

* TinaCMS content update

Co-authored-by: Isaac Lombard <[email protected]>

* TinaCMS content update

Co-authored-by: Isaac Lombard <[email protected]>

* TinaCMS content update

Co-authored-by: Isaac Lombard <[email protected]>

* TinaCMS content update

Co-authored-by: Isaac Lombard <[email protected]>

* TinaCMS content update

Co-authored-by: Isaac Lombard <[email protected]>

* TinaCMS content update

Co-authored-by: Isaac Lombard <[email protected]>

---------

Co-authored-by: tina-cloud-app[bot] <58178390+tina-cloud-app[bot]@users.noreply.github.com>
Co-authored-by: Isaac Lombard <[email protected]>
  • Loading branch information
tina-cloud-app[bot] and isaaclombardssw authored Nov 7, 2024
1 parent 2d9a6c0 commit e1ace25
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
16 changes: 9 additions & 7 deletions content/docs/reference/self-hosted/auth-provider/overview.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
---
id: /docs/reference/self-hosted/auth-provider/overview

title: Self-hosted Auth Provider Overview
last_edited: '2024-11-07T04:15:54.388Z'
next: ''
previous: ''
---

The term "Auth Provider" refers to the TinaCMS component that handles authentication and authorization of users when self-hosting.
Expand All @@ -12,10 +14,10 @@ you can also easily add support for any Auth.js [Login Provider](https://authjs.

The auth provider is configured in two places when self-hosting:

- The Tina Config
- The Tina Backend
* The Tina Config
* The Tina Backend

## 1. Tina Config (tina/config.{ts,tsx,js})
## 1. Tina Config (tina/config.ts,tsx,js)

This is done by providing an [Auth Provider](/docs/reference/self-hosted/auth-provider/bring-your-own#) to the `authProvider` option in `defineConfig`.

Expand Down Expand Up @@ -64,9 +66,9 @@ export default (req, res) => {

## Pre-Built Auth Providers

- [Default (Auth.js)](/docs/reference/self-hosted/auth-provider/authjs)
- [TinaCloud](/docs/reference/self-hosted/auth-provider/tina-cloud)
- [Clerk](/docs/reference/self-hosted/auth-provider/clerk-auth)
* [Default (Auth.js)](/docs/reference/self-hosted/auth-provider/authjs)
* [TinaCloud](/docs/reference/self-hosted/auth-provider/tina-cloud)
* [Clerk](/docs/reference/self-hosted/auth-provider/clerk-auth)

## Implementing an Auth Provider

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
---
id: /docs/reference/self-hosted/git-provider/make-your-own

title: Custom Git Provider
last_edited: '2024-11-07T04:15:12.643Z'
next: ''
previous: ''
---

Implement a Git Provider is easy. It is a class or object that implements the [`GitProvider`](#gitprovider-interface) interface.
Expand Down Expand Up @@ -129,7 +131,7 @@ export class MyGitHubProvider implements GitProvider {

This can now be used as a prop to the `createDatabase` [function](/docs/reference/self-hosted/database-adapter/overview/#createdatabase-function).

database.{ts,js}
database.ts,js:

```ts
import { createDatabase, createLocalDatabase } from '@tinacms/datalayer'
Expand Down

0 comments on commit e1ace25

Please sign in to comment.