We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currently the typings look like this:
export declare interface JWTOptions { keyId: string; keySecret: string; type: string; params?: any; } export declare class JWT { static sign(playbackId: string, options: JWTOptions): string; }
All of the usage examples in the ReadMe (https://github.com/muxinc/mux-node-sdk#jwt-helpers-api-reference) cause typescript errors because:
JWTOptions
sign
keyId
keySecret
In addition JWTOptions do not contain the expiration parameter.
expiration
Suggested types:
export declare interface JWTOptions { type: string; keyId?: string; keySecret?: string; expiration?: string; params?: any; } export declare class JWT { static sign(playbackId: string, options?: JWTOptions): string; }
The text was updated successfully, but these errors were encountered:
this was closed in #69 and released in v3.0.3 - see changelog: https://github.com/muxinc/mux-node-sdk/blob/master/CHANGELOG.md
v3.0.3
Sorry, something went wrong.
Thanks for merging the PR!
Unfortunately I missed in my previous change, that the type parameter is optional as well.
This PR #72 fixes this and makes the 'type' type stronger too.
export declare interface JWTOptions { type?: 'video' | 'thumbnail' | 'gif'; keyId?: string; keySecret?: string; expiration?: string; params?: any; }
No branches or pull requests
Currently the typings look like this:
All of the usage examples in the ReadMe (https://github.com/muxinc/mux-node-sdk#jwt-helpers-api-reference) cause typescript errors because:
JWTOptions
are not optional in the signature of thesign
methodkeyId
and thekeySecret
are not optional in theJWTOptions
typeIn addition
JWTOptions
do not contain theexpiration
parameter.Suggested types:
The text was updated successfully, but these errors were encountered: