Skip to content

Commit

Permalink
Merge pull request #157 from proofgeist/10-17-add_refreshtoken_to_fet…
Browse files Browse the repository at this point in the history
…chadapter

add refreshToken to FetchAdapter
  • Loading branch information
eluce2 authored Oct 17, 2024
2 parents 066f567 + 3ec78d9 commit 6c6642a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/lemon-dolphins-sparkle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@proofgeist/fmdapi": patch
---

Fix `refreshToken` value in the FetchAdapter
2 changes: 1 addition & 1 deletion src/adapters/fetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export class FetchAdapter extends BaseFetchAdapter {
private getTokenKey: Required<TokenStoreDefinitions>["getKey"];

constructor(args: FetchAdapterOptions) {
super(args);
super({ ...args, refreshToken: true });
this.username = args.auth.username;
this.password = args.auth.password;
this.tokenStore = args.tokenStore ?? memoryStore();
Expand Down

0 comments on commit 6c6642a

Please sign in to comment.