Skip to content

Commit ab197c5

Browse files
committed
fix: Fix BaseCreateTokenParams["scope"] type to accept null
1 parent 3fb8dd3 commit ab197c5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/mastodon/oauth/token-repository.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ interface BaseCreateTokenParams<T extends string> {
1616
/** Set a URI to redirect the user to. If this parameter is set to urn:ietf:wg:oauth:2.0:oob then the token will be shown instead. Must match one of the `redirect_uris` declared during app registration. */
1717
readonly redirectUri: string;
1818
/** List of requested OAuth scopes, separated by spaces (or by pluses, if using query parameters). If code was provided, then this must be equal to the `scope` requested from the user. Otherwise, it must be a subset of `scopes` declared during app registration. If not provided, defaults to read. */
19-
readonly scope?: string;
19+
readonly scope?: string | null;
2020
}
2121

2222
export interface CreateTokenWithAuthorizationCodeParams

0 commit comments

Comments
 (0)