-first commit
This commit is contained in:
21
node_modules/@redis/client/dist/lib/commands/AUTH.d.ts
generated
vendored
Normal file
21
node_modules/@redis/client/dist/lib/commands/AUTH.d.ts
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
import { CommandParser } from '../client/parser';
|
||||
import { RedisArgument, SimpleStringReply } from '../RESP/types';
|
||||
export interface AuthOptions {
|
||||
username?: RedisArgument;
|
||||
password: RedisArgument;
|
||||
}
|
||||
declare const _default: {
|
||||
readonly NOT_KEYED_COMMAND: true;
|
||||
readonly IS_READ_ONLY: true;
|
||||
/**
|
||||
* Authenticates the connection using a password or username and password
|
||||
* @param parser - The Redis command parser
|
||||
* @param options - Authentication options containing username and/or password
|
||||
* @param options.username - Optional username for authentication
|
||||
* @param options.password - Password for authentication
|
||||
*/
|
||||
readonly parseCommand: (this: void, parser: CommandParser, { username, password }: AuthOptions) => void;
|
||||
readonly transformReply: () => SimpleStringReply<'OK'>;
|
||||
};
|
||||
export default _default;
|
||||
//# sourceMappingURL=AUTH.d.ts.map
|
||||
Reference in New Issue
Block a user