Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add auth middleware #449

Merged
merged 111 commits into from
Aug 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
111 commits
Select commit Hold shift + click to select a range
5662dc3
feat: add api key generator
G3root Jul 17, 2024
f603867
feat: add basic middleware
G3root Jul 18, 2024
120ec0a
feat: fix schema
G3root Jul 18, 2024
4715646
feat: change api
G3root Jul 18, 2024
19dc590
feat: add api key method
G3root Jul 18, 2024
80aaa0b
feat: add basic middleware
G3root Jul 18, 2024
9531cf1
chore: rename variables
G3root Jul 18, 2024
8e7c2c1
chore: remove console log
G3root Jul 18, 2024
7725416
feat: add auth
G3root Jul 19, 2024
77eec39
chore: fix logic
G3root Jul 19, 2024
50b40f9
chore: fix import
G3root Jul 19, 2024
5838c5a
feat: add example api
G3root Jul 19, 2024
ab3961b
feat: make optional
G3root Jul 19, 2024
98b89aa
feat: add session cookie auth
G3root Jul 19, 2024
0b2e509
feat: add migration
G3root Jul 19, 2024
9fcbdd3
Merge branch 'main' into api-key-middleware
G3root Jul 19, 2024
a4d22f9
feat: fix build error
G3root Jul 19, 2024
fe4c53f
Merge branch 'main' into api-key-middleware
G3root Jul 22, 2024
0af7d8b
chore: remove session route
G3root Jul 22, 2024
552f432
feat: add name and email to session
G3root Jul 22, 2024
ac58466
feat: add audit to services
G3root Jul 22, 2024
6c9d391
style: fix type
G3root Jul 22, 2024
4bd69a7
chore: fix auth middleware
G3root Jul 22, 2024
cc7fd10
feat: add info to context
G3root Jul 22, 2024
3e1dc7b
chore: fix schema
G3root Jul 22, 2024
49052ed
feat: add ip util
G3root Jul 22, 2024
000e15e
feat: add new create endpoint
G3root Jul 22, 2024
774ebfa
feat: add delete endpoint
G3root Jul 22, 2024
2873970
feat: add update endpoint
G3root Jul 23, 2024
8763d42
chore: remove try catch
G3root Jul 23, 2024
4bef107
feat: add get one endpoint
G3root Jul 23, 2024
70ba875
feat: register routes
G3root Jul 23, 2024
b78abc2
chore: fix param
G3root Jul 23, 2024
83349ef
feat: add patch method
G3root Jul 23, 2024
1960d9a
feat: add get many routes and register
G3root Jul 23, 2024
9899fc0
chore: fix import
G3root Jul 23, 2024
e06b825
feat: init share route
G3root Jul 23, 2024
3fe8c08
chore: fix name
G3root Jul 23, 2024
ea5661b
feat: add delete share endpoint
G3root Jul 23, 2024
e4dafef
feat: add get one
G3root Jul 23, 2024
55f9456
feat: add get many route
G3root Jul 23, 2024
43260e1
fix: types and schema
G3root Jul 23, 2024
c3c503f
feat: add create handler
G3root Jul 23, 2024
2a6e5d2
feat: add update route
G3root Jul 23, 2024
f104558
feat: delete existing routes
G3root Jul 23, 2024
c5cdb46
refactor: remove services
G3root Jul 23, 2024
e4cb5ad
chore: add prisma pagination extension
G3root Jul 23, 2024
611ed0b
feat: add pagination
G3root Jul 23, 2024
3888e20
chore: remove import
G3root Jul 23, 2024
6255037
feat: add pagination
G3root Jul 23, 2024
9500a43
chore: fix type
G3root Jul 23, 2024
36076b7
chore: fix types
G3root Jul 23, 2024
3b35399
refactor: remove pagination and service
G3root Jul 23, 2024
c43e151
Merge branch 'main' into api-key-middleware
G3root Jul 23, 2024
3a3cdc6
chore: add expect error comment
G3root Jul 23, 2024
2957500
chore: fix type
G3root Jul 23, 2024
9dc780e
feat: add summary and description
G3root Jul 23, 2024
4e60ecc
feat: fix type
G3root Jul 24, 2024
3d44c21
feat: fix types
G3root Jul 24, 2024
0ced30e
feat: add error registry map
G3root Jul 24, 2024
c2301b8
style: naming changes
G3root Jul 24, 2024
255e688
chore: fix description and summary
G3root Jul 24, 2024
5e5a187
chore: rename
G3root Jul 24, 2024
b9b8f60
feat: use function
G3root Jul 24, 2024
c3c0e5d
Merge branch 'main' into api-key-middleware
G3root Jul 26, 2024
0ce9653
feat: add company id to path
G3root Jul 29, 2024
e910e09
feat: add company id to schema
G3root Jul 29, 2024
1e39e15
feat: add base-x
G3root Jul 29, 2024
c0f0f79
feat: add base 58 encoding
G3root Jul 29, 2024
8ba3992
feat: use new strategy
G3root Jul 29, 2024
ff3be3d
feat: fix schema
G3root Jul 29, 2024
28825ae
feat: add user access token
G3root Jul 29, 2024
71da37c
feat: add tokens utility
G3root Jul 29, 2024
89a974a
feat: add access token schema
G3root Jul 29, 2024
f6f09eb
feat: refactor lib
G3root Jul 29, 2024
4907367
refactor: utils
G3root Jul 29, 2024
dcd0c4b
refactor: session cookie auth middleware
G3root Jul 29, 2024
3bbe292
feat: add secure hash
G3root Jul 30, 2024
3d45998
feat: use secure hash
G3root Jul 30, 2024
4688d0c
fix: companyId in cookie
G3root Jul 30, 2024
13de5ec
refactor: func
G3root Jul 31, 2024
3ddc736
feat: add access token middleware
G3root Jul 31, 2024
4f8456e
feat: remove default middlewares
G3root Jul 31, 2024
92cc18d
feat: add utils for tokens
G3root Jul 31, 2024
a6a25fd
Merge branch 'main' into api-key-middleware
G3root Jul 31, 2024
9e60925
chore: upgrade packages
G3root Jul 31, 2024
eb4b463
chore: remove auth middleware function
G3root Jul 31, 2024
b3ed613
feat: add helper middleware
G3root Jul 31, 2024
8f66229
feat: add new middleware
G3root Jul 31, 2024
ff73996
feat: use hono helpers
G3root Jul 31, 2024
b3a9687
chore: remove utils
G3root Jul 31, 2024
931e83e
chore: remove type
G3root Jul 31, 2024
dd21c25
feat: add migration for access token
G3root Jul 31, 2024
a304e04
feat: access token
G3root Jul 31, 2024
394731c
feat: add without membership option
G3root Jul 31, 2024
cbae0b5
refactor: utils
G3root Jul 31, 2024
1f692b5
fix: verify util
G3root Jul 31, 2024
e68ea30
refactor: change route
G3root Jul 31, 2024
6379f40
chore: fix sidenav
G3root Jul 31, 2024
7cde51e
chore: rename wordings
G3root Jul 31, 2024
7f3be42
chore: rename router
G3root Jul 31, 2024
7b728ef
chore: update file name
G3root Aug 1, 2024
bdc9963
core: rename policies
G3root Aug 1, 2024
b1b8676
chore: rename apiKey to accessToken and change accessToken route to d…
dahal Aug 1, 2024
555add8
chore: working with middleware
dahal Aug 2, 2024
96835cd
fix: error messages
dahal Aug 2, 2024
97691e4
feat: keeping it lean and dry
dahal Aug 7, 2024
9fa315b
chore: remove un-used files
dahal Aug 7, 2024
9ed716c
chore: fix build error
dahal Aug 7, 2024
94b706a
feat: some minor cleanups
dahal Aug 7, 2024
643e467
feat: return bearer token error if its invalid instead of returning s…
dahal Aug 7, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
"@aws-sdk/client-s3": "^3.577.0",
"@aws-sdk/s3-request-presigner": "^3.577.0",
"@blocknote/react": "^0.12.2",
"@hono/swagger-ui": "^0.3.0",
"@hono/zod-openapi": "^0.14.8",
"@hono/swagger-ui": "^0.4.0",
"@hono/zod-openapi": "^0.15.1",
"@hookform/resolvers": "^3.9.0",
"@next-auth/prisma-adapter": "^1.0.7",
"@prisma/client": "^5.13.0",
Expand Down Expand Up @@ -76,13 +76,14 @@
"@types/bcryptjs": "^2.4.6",
"@types/papaparse": "^5.3.14",
"@wojtekmaj/react-hooks": "^1.20.0",
"base-x": "^5.0.0",
"bcryptjs": "^2.4.3",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
"cmdk": "^1.0.0",
"cookie": "^0.6.0",
"dayjs": "^1.11.11",
"hono": "^4.5.1",
"hono": "^4.5.3",
"html-to-image": "^1.11.11",
"input-otp": "^1.1.0",
"jose": "^5.3.0",
Expand All @@ -99,6 +100,7 @@
"pg-boss": "^9.0.3",
"pino": "^9.3.1",
"pino-pretty": "^11.2.1",
"prisma-extension-pagination": "^0.7.4",
"prisma-json-types-generator": "^3.0.4",
"pushmodal": "^1.0.4",
"react": "18.3.1",
Expand Down
134 changes: 60 additions & 74 deletions pnpm-lock.yaml

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

Loading