Page MenuHomePhabricator

[keyserver] moving getting neynar config to function
ClosedPublic

Authored by will on Oct 20 2024, 10:00 PM.
Tags
None
Referenced Files
F3327212: D13755.diff
Wed, Nov 20, 8:30 AM
F3327211: D13755.id.diff
Wed, Nov 20, 8:29 AM
Unknown Object (File)
Mon, Nov 18, 3:58 AM
Unknown Object (File)
Mon, Nov 18, 3:03 AM
Unknown Object (File)
Sun, Nov 17, 3:35 AM
Unknown Object (File)
Sat, Nov 16, 2:26 PM
Unknown Object (File)
Sat, Nov 16, 12:39 AM
Unknown Object (File)
Fri, Nov 15, 6:18 PM
Subscribers

Details

Summary

In the next diff, verifying the webhook event will require the webhook secret introduced in D13701. Moving grabbing the neynar config to a function to reduce code duplication

Depends on D13841

Test Plan

Later used in a future diff which successfully grabs the webhook secret

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

will requested review of this revision.Oct 20 2024, 10:17 PM
ashoat added inline comments.
keyserver/src/utils/fc-cache.js
18–23 ↗(On Diff #45285)

I wonder if this should be moved to a separate file. It doesn't really have to do with the FC cache

This revision is now accepted and ready to land.Oct 21 2024, 8:54 AM
keyserver/src/utils/fc-cache.js
18–23 ↗(On Diff #45285)

I think that makes sense. Decided to move it to a new file keyserver/src/utils/neynar-utils.js

move getNeynarConfig to own file