Skip to content

Commit

Permalink
⭐ Fix spelling errors
Browse files Browse the repository at this point in the history
  • Loading branch information
lucas-luchack committed Jul 8, 2022
1 parent 995a9ac commit 7831437
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions app/assets/js/authmanager.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,11 @@ async function fullMicrosoftAuthFlow(entryCode, authMode) {
if(xblResponse.responseStatus === RestResponseStatus.ERROR) {
return Promise.reject(microsoftErrorDisplayable(xblResponse.microsoftErrorCode))
}
const xstsResonse = await MicrosoftAuth.getXSTSToken(xblResponse.data)
if(xstsResonse.responseStatus === RestResponseStatus.ERROR) {
return Promise.reject(microsoftErrorDisplayable(xstsResonse.microsoftErrorCode))
const xstsResponse = await MicrosoftAuth.getXSTSToken(xblResponse.data)
if(xstsResponse.responseStatus === RestResponseStatus.ERROR) {
return Promise.reject(microsoftErrorDisplayable(xstsResponse.microsoftErrorCode))
}
const mcTokenResponse = await MicrosoftAuth.getMCAccessToken(xstsResonse.data)
const mcTokenResponse = await MicrosoftAuth.getMCAccessToken(xstsResponse.data)
if(mcTokenResponse.responseStatus === RestResponseStatus.ERROR) {
return Promise.reject(microsoftErrorDisplayable(mcTokenResponse.microsoftErrorCode))
}
Expand All @@ -106,7 +106,7 @@ async function fullMicrosoftAuthFlow(entryCode, authMode) {
accessToken,
accessTokenRaw,
xbl: xblResponse.data,
xsts: xstsResonse.data,
xsts: xstsResponse.data,
mcToken: mcTokenResponse.data,
mcProfile: mcProfileResponse.data
}
Expand All @@ -121,11 +121,11 @@ async function fullMicrosoftAuthFlow(entryCode, authMode) {
* to reduce the liklihood of working with an expired token.
*
* @param {number} nowMs Current time milliseconds.
* @param {number} epiresInS Expires in (seconds)
* @param {number} expiresInS Expires in (seconds)
* @returns
*/
function calculateExpiryDate(nowMs, epiresInS) {
return nowMs + ((epiresInS-10)*1000)
function calculateExpiryDate(nowMs, expiresInS) {
return nowMs + ((expiresInS-10)*1000)
}

/**
Expand Down

0 comments on commit 7831437

Please sign in to comment.