auth: return error if using session functions with nil store