Skip to content

sofajs/couchdb-session

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

couchdb-session

configs

const configs = {
    host: http://localhost,
    port: 5984,
    username: 'xxxxx',
    password: 'xxxxx'
} 

session

object returned by couchdb-session promise.

const session = {
    cookie: null,
    cookieVerbose: null,
    expires: String,
    expiresString: String,
    status: 'xxxxx',
    delay: 1000  
} 

delay delay time for renewing almostExpired cookies. Pre-empt use of expired cookies from making requests.

cookie couchdb session cookie.

local.ini cookie authentication [couch_httpd_auth] secret = ab19f28707dbb74b33089aef8bb08cda allow_persistent_cookies = true

expires Unix time to expiration. Parsed from header value passed from couchdb.

status 200 or error message.

Releases

No releases published

Packages

No packages published