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

[DRAFT] Invitation api #157

Draft
wants to merge 8 commits into
base: master
Choose a base branch
from
Draft

Conversation

rezk2ll
Copy link
Member

@rezk2ll rezk2ll commented Dec 19, 2024

No description provided.


await this.invitationService.accept(id)

// TODO: redirect to sign-up

Check notice

Code scanning / devskim

A "TODO" or similar was left in source code, possibly indicating incomplete functionality Note

Suspicious comment
method: 'POST',
headers: {
'Content-Type': 'application/json'
// TODO: add auth

Check notice

Code scanning / devskim

A "TODO" or similar was left in source code, possibly indicating incomplete functionality Note

Suspicious comment
medium: payload.medium,
address: payload.recepient,
sender: payload.sender
// TODO: add room_id

Check notice

Code scanning / devskim

A "TODO" or similar was left in source code, possibly indicating incomplete functionality Note

Suspicious comment
const authenticate = authMiddleware(authenticator, logger)
const controller = new InvitationApiController(db, logger, config)

router.post(PATH, authenticate)

Check failure

Code scanning / CodeQL

Missing rate limiting High

This route handler performs
authorization
, but is not rate-limited.

router.post(
`${PATH}/generate`,
authenticate,

Check failure

Code scanning / CodeQL

Missing rate limiting High

This route handler performs
authorization
, but is not rate-limited.
controller.generateInvitationLink
)

router.get(`${PATH}/list`, authenticate, controller.listInvitations)

Check failure

Code scanning / CodeQL

Missing rate limiting High

This route handler performs
authorization
, but is not rate-limited.

router.get(`${PATH}/list`, authenticate, controller.listInvitations)

router.get(`${PATH}/:id`, authenticate, controller.acceptInvitation)

Check failure

Code scanning / CodeQL

Missing rate limiting High

This route handler performs
authorization
, but is not rate-limited.
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.

1 participant