Function useRedisAuthState
- useRedisAuthState(redis, authKey?, logger?): Promise<{
removeCreds: (() => Promise<void>);
saveCreds: (() => Promise<void>);
state: AuthenticationState;
}> Parameters
redis: RedisClientType<{} & RedisModules, RedisFunctions, RedisScripts>
authKey: string = 'auth'
Optional
logger: Logger
Returns Promise<{
removeCreds: (() => Promise<void>);
saveCreds: (() => Promise<void>);
state: AuthenticationState;
}>