Skip to content

Commit

Permalink
Merge pull request #44 from emeraldpay/fix/unnecessary-token-on-refresh
Browse files Browse the repository at this point in the history
problem: uses original secret token to refresh auth
  • Loading branch information
splix authored Sep 11, 2024
2 parents 7f5ce57 + aecd370 commit 35b698f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion packages/core/src/signature.ts
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,6 @@ class JwtAuthProvider implements EmeraldAuthenticator {
}

const refreshRequest: RefreshRequest = {
secret: this.secretToken,
refreshToken: this.refreshToken,
}

Expand Down
4 changes: 0 additions & 4 deletions packages/core/src/typesAuth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ export type AuthRequest = {
}

export type RefreshRequest = {
secret: SecretToken,
refreshToken: RefreshToken,
}

Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit 35b698f

Please sign in to comment.