Skip to content

Commit

Permalink
fix: Fix BaseCreateTokenParams["scope"] type to accept null
Browse files Browse the repository at this point in the history
  • Loading branch information
neet committed Apr 23, 2024
1 parent 3fb8dd3 commit ab197c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mastodon/oauth/token-repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ interface BaseCreateTokenParams<T extends string> {
/** 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. */
readonly redirectUri: string;
/** 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. */
readonly scope?: string;
readonly scope?: string | null;
}

export interface CreateTokenWithAuthorizationCodeParams
Expand Down

0 comments on commit ab197c5

Please sign in to comment.