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

#14 WIP Add emailToken type and getTokens() #39

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

gracekishino
Copy link
Contributor

@gracekishino gracekishino commented Jan 17, 2024

@mdwiltfong I've had a go at adding in the tokens to server/prisma/index.ts.

I wasn't exactly sure what the file was for so asked ChatGPT and added a comment to the top of the file about what I think it's for, please let me know if it's not right and also if the code is OK!

@mdwiltfong
Copy link
Owner

Hey @gracekishino ! I'll take a look! So far it looks like our CI/CD has picked up some errors. Do you mind taking a look at them?

@gracekishino gracekishino changed the title Add emailToken type and getTokens() #14 WIP Add emailToken type and getTokens() Jan 17, 2024
@gracekishino
Copy link
Contributor Author

@mdwiltfong thanks so much! Just noticed that, was using Boolean instead of boolean.

@mdwiltfong
Copy link
Owner

Noice! Let me give it a review.

@mdwiltfong
Copy link
Owner

This looks good! Although, I need to see some tests 😬

Do you mind adding some to /server/__tests__?

@gracekishino
Copy link
Contributor Author

@mdwiltfong will do! Thanks for the guidance for this!

Copy link

gitguardian bot commented Jan 25, 2024

⚠️ GitGuardian has uncovered 2 secrets following the scan of your pull request.

Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.

🔎 Detected hardcoded secrets in your pull request
GitGuardian id Secret Commit Filename
- Generic High Entropy Secret 04c863e server/mockData/mockData.ts View secret
- Generic High Entropy Secret 41030c9 server/mockData/mockData.ts View secret
🛠 Guidelines to remediate hardcoded secrets
  1. Understand the implications of revoking this secret by investigating where it is used in your code.
  2. Replace and store your secrets safely. Learn here the best practices.
  3. Revoke and rotate these secrets.
  4. If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.

To avoid such incidents in the future consider


🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

Our GitHub checks need improvements? Share your feedbacks!

@gracekishino
Copy link
Contributor Author

@mdwiltfong still working on this so no need to check it yet!

@gracekishino
Copy link
Contributor Author

gracekishino commented Feb 15, 2024

@mdwiltfong thanks for today! Wondered if you could point me in the direction of how to mock a JWT token? I did a search on the npmjs.com site and got these results but wasn't sure which one (if any) is most appropriate:

https://www.npmjs.com/search?q=mock%20jwt

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