strapi-custom-auth 1.2.27 → 1.2.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/server/index.js +4 -0
- package/dist/server/index.mjs +4 -0
- package/package.json +1 -1
package/dist/server/index.js
CHANGED
|
@@ -3420,15 +3420,19 @@ async function microsoftTokenRenewal(ctx) {
|
|
|
3420
3420
|
const jwtToken = await tokenService.createToken(dbUser);
|
|
3421
3421
|
console.log("----tokenService----", tokenService);
|
|
3422
3422
|
console.log("----tokenService----", JSON.stringify(tokenService));
|
|
3423
|
+
console.log("----tokenService2----", tokenService2);
|
|
3424
|
+
console.log("----tokenService2----", JSON.stringify(tokenService2));
|
|
3423
3425
|
try {
|
|
3424
3426
|
const jwtToken2 = await tokenService2.createJwtToken(dbUser);
|
|
3425
3427
|
console.log("----jwtToken2----", jwtToken2);
|
|
3426
3428
|
} catch (e2) {
|
|
3429
|
+
console.log("----jwtToken2----, e", JSON.stringify(e2));
|
|
3427
3430
|
}
|
|
3428
3431
|
try {
|
|
3429
3432
|
const jwtToken3 = await tokenService2.createToken(dbUser);
|
|
3430
3433
|
console.log("----jwtToken3----", jwtToken3);
|
|
3431
3434
|
} catch (e2) {
|
|
3435
|
+
console.log("----jwtToken3----, e", JSON.stringify(e2));
|
|
3432
3436
|
}
|
|
3433
3437
|
return ctx.send({ accessToken: jwtToken, refreshToken: tokenResponse.data.refresh_token });
|
|
3434
3438
|
} catch (e2) {
|
package/dist/server/index.mjs
CHANGED
|
@@ -3405,15 +3405,19 @@ async function microsoftTokenRenewal(ctx) {
|
|
|
3405
3405
|
const jwtToken = await tokenService.createToken(dbUser);
|
|
3406
3406
|
console.log("----tokenService----", tokenService);
|
|
3407
3407
|
console.log("----tokenService----", JSON.stringify(tokenService));
|
|
3408
|
+
console.log("----tokenService2----", tokenService2);
|
|
3409
|
+
console.log("----tokenService2----", JSON.stringify(tokenService2));
|
|
3408
3410
|
try {
|
|
3409
3411
|
const jwtToken2 = await tokenService2.createJwtToken(dbUser);
|
|
3410
3412
|
console.log("----jwtToken2----", jwtToken2);
|
|
3411
3413
|
} catch (e2) {
|
|
3414
|
+
console.log("----jwtToken2----, e", JSON.stringify(e2));
|
|
3412
3415
|
}
|
|
3413
3416
|
try {
|
|
3414
3417
|
const jwtToken3 = await tokenService2.createToken(dbUser);
|
|
3415
3418
|
console.log("----jwtToken3----", jwtToken3);
|
|
3416
3419
|
} catch (e2) {
|
|
3420
|
+
console.log("----jwtToken3----, e", JSON.stringify(e2));
|
|
3417
3421
|
}
|
|
3418
3422
|
return ctx.send({ accessToken: jwtToken, refreshToken: tokenResponse.data.refresh_token });
|
|
3419
3423
|
} catch (e2) {
|
package/package.json
CHANGED