Function useMongoDBAuthState
- useMongoDBAuthState(collection, logger?): Promise<{
removeCreds: (() => Promise<void>);
saveCreds: (() => Promise<void>);
state: AuthenticationState;
}> Parameters
collection: Collection<any>
Optional
logger: Logger
Returns Promise<{
removeCreds: (() => Promise<void>);
saveCreds: (() => Promise<void>);
state: AuthenticationState;
}>