Skip to content

Commit 1af3289

Browse files
committed
make token required
1 parent 7b60c29 commit 1af3289

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/wrapper/WebflowClient.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ export class WebflowClient extends FernClient {
4444

4545
public async createPageClient(siteId: string, pageId: string): Promise<PageClient> {
4646
const token = await core.Supplier.get(this._options.accessToken);
47+
if(!token) {
48+
throw new Error("No access token present");
49+
}
4750
return new PageClient({siteId, pageId, token });
4851
}
4952

0 commit comments

Comments
 (0)