Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
unnoq committed Feb 16, 2024
1 parent af0e258 commit bc833c6
Show file tree
Hide file tree
Showing 4 changed files with 73 additions and 30 deletions.
2 changes: 1 addition & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
use-node-version = 20.11.0
use-node-version = 20.11.1
auto-install-peers = true
shamefully-hoist = true
37 changes: 37 additions & 0 deletions SETUP.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Setup

## Clerk authentication

1. Allow organization feature

2. Create browser-extension JWT template

- Name: `browser-extension`
- Token lifetime: `604800` seconds
- Claims:

```json
{
"org_id": "{{org.id}}",
"org_role": "{{org.role}}",
"org_slug": "{{org.slug}}",
"org_permissions": "{{org_membership.permissions}}"
}
```

3. Create a knock JWT template

- Name: `knock`
- Token lifetime: `86400` seconds
- Custom signing key: `turn on`
- Signing algorithm: `RS256`
- Signing key: get it from `knock` in advanced
- Claims:

```json
{}
```

## Knock notification

1. Enable `Enhanced security mode`
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@
"tsc-alias": "^1.8.8",
"turbo": "^1.11.3",
"typescript": "^5.3.3",
"wrangler": "^3.23.0"
"wrangler": "^3.28.2"
}
}
62 changes: 34 additions & 28 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit bc833c6

Please sign in to comment.