diff --git a/.changeset/lemon-dolphins-sparkle.md b/.changeset/lemon-dolphins-sparkle.md new file mode 100644 index 0000000..3d696a1 --- /dev/null +++ b/.changeset/lemon-dolphins-sparkle.md @@ -0,0 +1,5 @@ +--- +"@proofgeist/fmdapi": patch +--- + +Fix `refreshToken` value in the FetchAdapter diff --git a/src/adapters/fetch.ts b/src/adapters/fetch.ts index 8673284..9f8eda7 100644 --- a/src/adapters/fetch.ts +++ b/src/adapters/fetch.ts @@ -22,7 +22,7 @@ export class FetchAdapter extends BaseFetchAdapter { private getTokenKey: Required["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();