Skip to content

Commit

Permalink
fix: make createToken options optional (#22)
Browse files Browse the repository at this point in the history
* fix: make createToken options optional

* update group create token params

---------

Co-authored-by: Jack Malcom <[email protected]>
  • Loading branch information
dizeeee and Jack Malcom authored Jun 16, 2024
1 parent 5d8691e commit 9be4a82
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,8 @@ export class DatabaseClient {
async createToken(
dbName: string,
options?: {
expiration: string;
authorization: "read-only" | "full-access";
expiration?: string;
authorization?: "read-only" | "full-access";
permissions?: {
read_attach: { databases: Database["name"][] };
};
Expand Down
4 changes: 2 additions & 2 deletions src/group.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ export class GroupClient {
async createToken(
groupName: string,
options?: {
expiration: string;
authorization: "read-only" | "full-access";
expiration?: string;
authorization?: "read-only" | "full-access";
permissions?: {
read_attach: { databases: Database["name"][] };
};
Expand Down

0 comments on commit 9be4a82

Please sign in to comment.