Skip to content

Commit f97e226

Browse files
committed
Change UIUC token header name
1 parent 97be701 commit f97e226

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/api/routes/v2/membership.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ const membershipV2Plugin: FastifyPluginAsync = async (fastify, _options) => {
3131
{
3232
schema: withTags(["Membership"], {
3333
headers: z.object({
34-
"x-uiuc-id-token": z.jwt().min(1).meta({
34+
"x-uiuc-token": z.jwt().min(1).meta({
3535
description:
36-
"An ID token for the user in the UIUC Entra ID tenant.",
36+
"An access token for the user in the UIUC Entra ID tenant.",
3737
}),
3838
}),
3939
summary:
@@ -55,7 +55,7 @@ const membershipV2Plugin: FastifyPluginAsync = async (fastify, _options) => {
5555
}),
5656
},
5757
async (request, reply) => {
58-
const idToken = request.headers["x-uiuc-id-token"];
58+
const idToken = request.headers["x-uiuc-token"];
5959
const verifiedData = await verifyUiucIdToken({
6060
idToken,
6161
redisClient: fastify.redisClient,

src/api/routes/v2/mobileWallet.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,9 @@ const mobileWalletV2Route: FastifyPluginAsync = async (fastify, _options) => {
106106
schema: withTags(["Mobile Wallet"], {
107107
summary: "Retrieve mobile wallet pass for ACM member.",
108108
headers: z.object({
109-
"x-uiuc-id-token": z.jwt().min(1).meta({
109+
"x-uiu-token": z.jwt().min(1).meta({
110110
description:
111-
"An ID token for the user in the UIUC Entra ID tenant.",
111+
"An access token for the user in the UIUC Entra ID tenant.",
112112
}),
113113
}),
114114
response: {
@@ -127,7 +127,7 @@ const mobileWalletV2Route: FastifyPluginAsync = async (fastify, _options) => {
127127
}),
128128
},
129129
async (request, reply) => {
130-
const idToken = request.headers["x-uiuc-id-token"];
130+
const idToken = request.headers["x-uiuc-token"];
131131
const verifiedData = await verifyUiucIdToken({
132132
idToken,
133133
redisClient: fastify.redisClient,

0 commit comments

Comments
 (0)