From aecd37027316a4ff4d5a18dd616b601b0a8f06f7 Mon Sep 17 00:00:00 2001 From: Igor Artamonov Date: Wed, 11 Sep 2024 22:17:02 +0100 Subject: [PATCH] problem: uses original secret token to refresh auth --- packages/core/src/signature.ts | 1 - packages/core/src/typesAuth.ts | 4 ---- 2 files changed, 5 deletions(-) diff --git a/packages/core/src/signature.ts b/packages/core/src/signature.ts index 1307af8..26261cb 100644 --- a/packages/core/src/signature.ts +++ b/packages/core/src/signature.ts @@ -290,7 +290,6 @@ class JwtAuthProvider implements EmeraldAuthenticator { } const refreshRequest: RefreshRequest = { - secret: this.secretToken, refreshToken: this.refreshToken, } diff --git a/packages/core/src/typesAuth.ts b/packages/core/src/typesAuth.ts index 44f274f..027d5db 100644 --- a/packages/core/src/typesAuth.ts +++ b/packages/core/src/typesAuth.ts @@ -33,7 +33,6 @@ export type AuthRequest = { } export type RefreshRequest = { - secret: SecretToken, refreshToken: RefreshToken, } @@ -139,10 +138,7 @@ export class ConvertAuth { public refreshRequest(req: RefreshRequest): auth_pb.RefreshRequest { const result: auth_pb.RefreshRequest = this.factory('auth_pb.RefreshRequest'); - - result.setAuthSecret(req.secret); result.setRefreshToken(req.refreshToken); - return result; }