Skip to content

feat: add auth middleware#449

Merged
dahal merged 111 commits intomainfrom
api-key-middleware
Aug 7, 2024
Merged

feat: add auth middleware#449
dahal merged 111 commits intomainfrom
api-key-middleware

Conversation

@G3root
Copy link
Copy Markdown
Collaborator

@G3root G3root commented Jul 18, 2024

No description provided.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jul 18, 2024

Thank you for following the naming conventions for pull request titles! 🙏

@G3root G3root marked this pull request as ready for review July 19, 2024 11:24
@G3root G3root requested a review from dahal July 19, 2024 11:24
Comment thread prisma/schema.prisma Outdated
Comment thread prisma/schema.prisma Outdated
Comment thread prisma/schema.prisma
Comment thread src/server/api/index.ts Outdated
@G3root G3root marked this pull request as ready for review July 31, 2024 04:22
@dahal dahal merged commit 7789249 into main Aug 7, 2024
@dahal dahal deleted the api-key-middleware branch August 7, 2024 06:40
zeekay pushed a commit to hanzoai/captable that referenced this pull request Mar 10, 2026
* feat: add api key generator

* feat: add basic middleware

* feat: fix schema

* feat: change api

* feat: add api key method

* feat: add basic middleware

* chore: rename variables

* chore: remove console log

* feat: add auth

* chore: fix logic

* chore: fix import

* feat: add example api

* feat: make optional

* feat: add session cookie auth

* feat: add migration

* feat: fix build error

* chore: remove session route

* feat: add name and email to session

* feat: add audit to services

* style: fix type

* chore: fix auth middleware

* feat: add info to context

* chore: fix schema

* feat: add ip util

* feat: add new create endpoint

* feat: add delete endpoint

* feat: add update endpoint

* chore: remove try catch

* feat: add get one endpoint

* feat: register routes

* chore: fix param

* feat: add patch method

* feat: add get many routes and register

* chore: fix import

* feat: init share route

* chore: fix name

* feat: add delete share endpoint

* feat: add get one

* feat: add get many route

* fix: types and schema

* feat: add create handler

* feat: add update route

* feat: delete existing routes

* refactor: remove services

* chore: add prisma pagination extension

* feat: add pagination

* chore: remove import

* feat: add pagination

* chore: fix type

* chore: fix types

* refactor: remove pagination and service

* chore: add expect error comment

* chore: fix type

* feat: add summary and description

* feat: fix type

* feat: fix types

* feat: add error registry map

* style: naming changes

* chore: fix description and summary

* chore: rename

* feat: use function

* feat: add company id to path

* feat: add company id to schema

* feat: add base-x

* feat: add base 58 encoding

* feat: use new strategy

* feat: fix schema

* feat: add user access token

* feat: add tokens utility

* feat: add access token schema

* feat: refactor lib

* refactor: utils

* refactor: session cookie auth middleware

* feat: add secure hash

* feat: use secure hash

* fix: companyId in cookie

* refactor: func

* feat: add access token  middleware

* feat: remove default middlewares

* feat: add utils for tokens

* chore: upgrade packages

* chore: remove auth middleware function

* feat: add helper middleware

* feat: add new middleware

* feat: use hono helpers

* chore: remove utils

* chore: remove type

* feat: add migration for access token

* feat: access token

* feat: add without membership option

* refactor: utils

* fix: verify util

* refactor: change route

* chore: fix sidenav

* chore: rename wordings

* chore: rename router

* chore: update file name

* core: rename policies

* chore: rename apiKey to accessToken and change accessToken route to developer

* chore: working with middleware

* fix: error messages

* feat: keeping it lean and dry

* chore: remove un-used files

* chore: fix build error

* feat: some minor cleanups

* feat: return bearer token error if its invalid instead of returning session error

---------

Co-authored-by: Puru D <puru@dahal.me>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants