Skip to content

Commit

Permalink
fix up header def
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopherJMiller committed Jan 11, 2024
1 parent fe62152 commit 883ed59
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions api/src/connections/connection.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ export class ConnectionController {
@UseGuards(AuthGuard('jwt'))
@ApiBearerAuth()
@ApiHeader({
name: 'MS_Authorization',
name: 'Ms_Authorization',
})
async addMinecraft(
@Headers('MS_Authorization') msAccessToken,
@Headers('Ms_Authorization') msAccessToken,
@Request() req,
): Promise<void> {
const user = User.fromJwt(req.user);
Expand Down
1 change: 1 addition & 0 deletions api/src/utils/minecraft.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
export async function authenticateAgainstMinecraft(
msAccessToken: string,
): Promise<string> {
console.log('Starting auth flow to get minecraft id');
const xboxLiveAuth = {
Properties: {
AuthMethod: 'RPS',
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/util/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const addMinecraftToUser = (token: string, msToken: string) =>
},
params: {
header: {
MS_Authorization: msToken,
Ms_Authorization: msToken,
},
},
});
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/util/v1.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export interface operations {
ConnectionController_addMinecraft: {
parameters: {
header?: {
MS_Authorization?: string;
Ms_Authorization?: string;
};
};
responses: {
Expand Down

0 comments on commit 883ed59

Please sign in to comment.