fix: make tokenType use the token type, not system type

This commit is contained in:
Jonathan Barrow
2026-07-15 17:00:35 -04:00
parent 6a02c328bc
commit 46e7ea163a
4 changed files with 6 additions and 6 deletions

View File

@@ -110,7 +110,7 @@ export async function exchangeIndependentServiceTokenForUserData(request: Exchan
},
tokenInfo: {
systemType: serviceToken.info.system_type as any, // TODO - Stop the any usage
tokenType: serviceToken.info.system_type as any, // TODO - Stop the any usage
tokenType: serviceToken.info.token_type as any, // TODO - Stop the any usage
pid: BigInt(pnid.pid),
accessLevel: pnid.access_level,
titleId: serviceToken.info.title_id,
@@ -136,7 +136,7 @@ export async function exchangeIndependentServiceTokenForUserData(request: Exchan
},
tokenInfo: {
systemType: serviceToken.info.system_type as any, // TODO - Stop the any usage
tokenType: serviceToken.info.system_type as any, // TODO - Stop the any usage
tokenType: serviceToken.info.token_type as any, // TODO - Stop the any usage
pid: BigInt(nexAccount.pid),
accessLevel: nexAccount.access_level,
titleId: serviceToken.info.title_id,

View File

@@ -48,7 +48,7 @@ export async function exchangeNEXTokenForUserData(request: ExchangeNEXTokenForUs
},
tokenInfo: {
systemType: nexToken.info.system_type as any, // TODO - Stop the any usage
tokenType: nexToken.info.system_type as any, // TODO - Stop the any usage
tokenType: nexToken.info.token_type as any, // TODO - Stop the any usage
pid: BigInt(nexAccount.pid),
accessLevel: nexAccount.access_level,
titleId: nexToken.info.title_id,
@@ -73,7 +73,7 @@ export async function exchangeNEXTokenForUserData(request: ExchangeNEXTokenForUs
},
tokenInfo: {
systemType: nexToken.info.system_type as any, // TODO - Stop the any usage
tokenType: nexToken.info.system_type as any, // TODO - Stop the any usage
tokenType: nexToken.info.token_type as any, // TODO - Stop the any usage
pid: BigInt(nexAccount.pid),
accessLevel: nexAccount.access_level,
titleId: nexToken.info.title_id,

View File

@@ -108,7 +108,7 @@ export async function exchangeOAuthTokenForUserData(request: ExchangeOAuthTokenF
},
tokenInfo: {
systemType: oAuthToken.info.system_type as any, // TODO - Stop the any usage
tokenType: oAuthToken.info.system_type as any, // TODO - Stop the any usage
tokenType: oAuthToken.info.token_type as any, // TODO - Stop the any usage
pid: BigInt(pnid.pid),
accessLevel: pnid.access_level,
titleId: oAuthToken.info.title_id,

View File

@@ -104,7 +104,7 @@ export async function exchangePasswordResetTokenForUserData(request: ExchangePas
},
tokenInfo: {
systemType: passwordResetToken.info.system_type as any, // TODO - Stop the any usage
tokenType: passwordResetToken.info.system_type as any, // TODO - Stop the any usage
tokenType: passwordResetToken.info.token_type as any, // TODO - Stop the any usage
pid: BigInt(pnid.pid),
accessLevel: pnid.access_level,
titleId: passwordResetToken.info.title_id,