Skip to content

Commit

Permalink
Update clerk docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffsee55 committed Aug 2, 2023
1 parent 6e531b1 commit 7c0e7c7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ prev: '/docs/self-hosted/authentication-provider/overview'
next: '/docs/self-hosted/authentication-provider/tina-cloud'
---

Clerk is a SaaS auth service for user management. You can use Clerk as the authentication layer for any self-hosted Tina setup.
[Clerk](https://clerk.com) is a user management service which you can use for any self-hosted Tina setup.

## Getting Started

Expand All @@ -21,7 +21,7 @@ Visit [clerk.com](https://clerk.com/) to create an account and an "application".

![Clerk API Keys screenshot](/img/clerk-api-keys-screenshot.png)

```.env
```bash
CLERK_SECRET=sk_test_my-clerk-secret
TINA_PUBLIC_CLERK_PUBLIC_KEY=pk_test_my-clerk-public-key
TINA_PUBLIC_IS_LOCAL=false
Expand All @@ -31,7 +31,7 @@ TINA_PUBLIC_IS_LOCAL=false
## Update your Tina Config

Add the following to your `tina/config.{ts.js}` file
Add the following to your `tina/config.{ts.js}` file, be sure to replace "my-email@gmail.com" with the email you're signing in with:

```ts
import Clerk from '@clerk/clerk-js'
Expand All @@ -43,7 +43,7 @@ const clerk = new Clerk(process.env.TINA_PUBLIC_CLERK_PUBLIC_KEY)
* https://clerk.com/docs/authentication/allowlist
*/
export const isUserAllowed = (emailAddress: string) => {
const allowList = ['jeffsee.55@gmail.com']
const allowList = ['my-email@gmail.com']
if (allowList.includes(emailAddress)) {
return true
}
Expand Down
4 changes: 4 additions & 0 deletions content/toc-doc.json
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,10 @@
"title": "Next Auth",
"slug": "/docs/self-hosted/authentication-provider/next-auth/"
},
{
"title": "Clerk Auth",
"slug": "/docs/self-hosted/authentication-provider/clerk-auth/"
},
{
"title": "Using Tina Cloud for Authentication",
"slug": "/docs/self-hosted/authentication-provider/tina-cloud/"
Expand Down
2 changes: 1 addition & 1 deletion tina/tina-lock.json

Large diffs are not rendered by default.

0 comments on commit 7c0e7c7

Please sign in to comment.