Skip to content

feat: enforce jwt authentication for moderation endpoints#49

Merged
Stuyk merged 1 commit intomainfrom
feat/auth-for-moderation-endpoints
May 14, 2025
Merged

feat: enforce jwt authentication for moderation endpoints#49
Stuyk merged 1 commit intomainfrom
feat/auth-for-moderation-endpoints

Conversation

@Villaquiranm
Copy link
Contributor

closes #32

@netlify
Copy link

netlify bot commented May 10, 2025

Deploy Preview for dither-staging ready!

Name Link
🔨 Latest commit d6fff6e
🔍 Latest deploy log https://app.netlify.com/sites/dither-staging/deploys/68242c5968a1560008712d81
😎 Deploy Preview https://deploy-preview-49--dither-staging.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@Villaquiranm Villaquiranm force-pushed the feat/auth-for-moderation-endpoints branch from e230c39 to 427bcda Compare May 14, 2025 05:36
@Villaquiranm Villaquiranm force-pushed the feat/auth-for-moderation-endpoints branch from 427bcda to d6fff6e Compare May 14, 2025 05:38
@Villaquiranm Villaquiranm marked this pull request as ready for review May 14, 2025 05:41
const expirationTime = 60_000 * 5;
const requests: { [publicKey: string]: string } = {};
const secretKey = 'temp-key-need-to-config-this';
export const secretKey = 'temp-key-need-to-config-this';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we put this to env?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yea, still needs to be put into a vite environment variable, can be ignored for now though.

@Stuyk Stuyk merged commit 3c2b047 into main May 14, 2025
6 checks passed
@Stuyk Stuyk deleted the feat/auth-for-moderation-endpoints branch September 26, 2025 18:54
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.

Backend — Integrate Auth for Certain Endpoints

4 participants