SudoSOS Back-end API / authentication / HandlerOptions
Interface: HandlerOptions ​
The configuration options for the token handler.
Properties ​
algorithm ​
ts
readonly algorithm: Algorithm;The algorithm used for signing the tokens.
expiry ​
ts
readonly expiry: number;The expiry time for newly generated or refreshed tokens, expressed in seconds.
privateKey ​
ts
readonly privateKey: string | Buffer<ArrayBufferLike>;The key to be used for signing tokens.
publicKey ​
ts
readonly publicKey: string | Buffer<ArrayBufferLike>;The key to be used for verifying tokens.