Skip to content

Commit

Permalink
Replace userID with random one
Browse files Browse the repository at this point in the history
  • Loading branch information
lazerwalker committed Sep 20, 2024
1 parent 1892ccb commit ff217f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/startPonderingOrbs/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { AzureFunction, Context, HttpRequest } from '@azure/functions'

const httpTrigger: AzureFunction = async function (context: Context, req: HttpRequest, connection): Promise<void> {
if (req.headers.userId !== 'orbWizard') {
if (req.headers.userId !== process.env.ORB_PONDER_USER) {
context.res = {
status: 401,
body: 'Unauthorized'
Expand Down

0 comments on commit ff217f9

Please sign in to comment.